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>
This commit is contained in:
Michael Wood 2016-06-13 14:29:30 +01:00 committed by Richard Purdie
parent 000d724312
commit 234a625f40
2 changed files with 2 additions and 2 deletions

View 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)

View 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