From 234a625f40523032cc2fcd762558627fd9ef112a Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Mon, 13 Jun 2016 14:29:30 +0100 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/tests/builds/README | 2 +- .../toaster/toastermain/{settings-test.py => settings_test.py} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename bitbake/lib/toaster/toastermain/{settings-test.py => settings_test.py} (97%) 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: $ . 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) diff --git a/bitbake/lib/toaster/toastermain/settings-test.py b/bitbake/lib/toaster/toastermain/settings_test.py similarity index 97% rename from bitbake/lib/toaster/toastermain/settings-test.py rename to 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 @@ # 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