summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-06-13 14:29:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-15 08:35:06 +0100
commit234a625f40523032cc2fcd762558627fd9ef112a (patch)
treec3283fae8af8fabe89f5f1e21d024d25972d0a82 /bitbake
parent000d724312b57d8c737593cb9e05aba2cf9c7d5f (diff)
downloadpoky-234a625f40523032cc2fcd762558627fd9ef112a.tar.gz
bitbake: toaster: tests Rename test settings to python compliant name and fix import
Use underscore instead of dash in the file name for the test settings. Also fix the import of the settings module. (Bitbake rev: 0bdfcafdd1e2ebc10dc0cd343c8bb77f09a71c90) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/tests/builds/README2
-rw-r--r--bitbake/lib/toaster/toastermain/settings_test.py (renamed from bitbake/lib/toaster/toastermain/settings-test.py)2
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/tests/builds/README b/bitbake/lib/toaster/tests/builds/README
index 98e3e2e047..4a3b5328b8 100644
--- a/bitbake/lib/toaster/tests/builds/README
+++ b/bitbake/lib/toaster/tests/builds/README
@@ -7,7 +7,7 @@ The simplest way to run the tests are the following commands:
7 7
8$ . oe-init-build-env 8$ . oe-init-build-env
9$ cd bitbake/lib/toaster/ # path my vary but this is into toaster's directory 9$ cd bitbake/lib/toaster/ # path my vary but this is into toaster's directory
10$ DJANGO_SETTINGS_MODULE='toastermain.settings-test' ./manage.py test tests.builds 10$ DJANGO_SETTINGS_MODULE='toastermain.settings_test' ./manage.py test tests.builds
11 11
12Optional environment variables: 12Optional environment variables:
13 - TOASTER_DIR (where toaster keeps it's artifacts) 13 - TOASTER_DIR (where toaster keeps it's artifacts)
diff --git a/bitbake/lib/toaster/toastermain/settings-test.py b/bitbake/lib/toaster/toastermain/settings_test.py
index 36b14c06db..a322711579 100644
--- a/bitbake/lib/toaster/toastermain/settings-test.py
+++ b/bitbake/lib/toaster/toastermain/settings_test.py
@@ -24,7 +24,7 @@
24# Settings overlay to use for running tests 24# Settings overlay to use for running tests
25# DJANGO_SETTINGS_MODULE=toastermain.settings-test 25# DJANGO_SETTINGS_MODULE=toastermain.settings-test
26 26
27from settings import * 27from toastermain.settings import *
28 28
29DEBUG = True 29DEBUG = True
30TEMPLATE_DEBUG = DEBUG 30TEMPLATE_DEBUG = DEBUG