]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: tests Rename test settings to python compliant name and fix import
authorMichael Wood <michael.g.wood@intel.com>
Mon, 13 Jun 2016 13:29:30 +0000 (14:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jun 2016 10:08:59 +0000 (11:08 +0100)
Use underscore instead of dash in the file name for the test settings.
Also fix the import of the settings module.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
lib/toaster/tests/builds/README
lib/toaster/toastermain/settings_test.py [moved from lib/toaster/toastermain/settings-test.py with 97% similarity]

index 98e3e2e04796ac5c65b092a38894ca78e97ac952..4a3b5328b86ffe336fabe8832ff7c90c6534c471 100644 (file)
@@ -7,7 +7,7 @@ The simplest way to run the tests are the following commands:
 
 $ . oe-init-build-env
 $ cd bitbake/lib/toaster/ # path my vary but this is into toaster's directory
-$ DJANGO_SETTINGS_MODULE='toastermain.settings-test' ./manage.py test tests.builds
+$ DJANGO_SETTINGS_MODULE='toastermain.settings_test' ./manage.py test tests.builds
 
 Optional environment variables:
  - TOASTER_DIR (where toaster keeps it's artifacts)
similarity index 97%
rename from lib/toaster/toastermain/settings-test.py
rename to lib/toaster/toastermain/settings_test.py
index 36b14c06db6f01f17be9cee0e02a5e6ff783454b..a3227115798f3f6704bd9e67390dec22177a2a8e 100644 (file)
@@ -24,7 +24,7 @@
 # Settings overlay to use for running tests
 # DJANGO_SETTINGS_MODULE=toastermain.settings-test
 
-from settings import *
+from toastermain.settings import *
 
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG