[oe-commits] [bitbake] 22/26: toaster: tests Rename test settings to python compliant name and fix import

git at git.openembedded.org git at git.openembedded.org
Tue Jun 14 10:10:30 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 0bdfcafdd1e2ebc10dc0cd343c8bb77f09a71c90
Author: Michael Wood <michael.g.wood at intel.com>
AuthorDate: Mon Jun 13 14:29:30 2016 +0100

    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.
    
    Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
 lib/toaster/tests/builds/README                                | 2 +-
 lib/toaster/toastermain/{settings-test.py => settings_test.py} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/toaster/tests/builds/README b/lib/toaster/tests/builds/README
index 98e3e2e..4a3b532 100644
--- a/lib/toaster/tests/builds/README
+++ b/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/lib/toaster/toastermain/settings-test.py b/lib/toaster/toastermain/settings_test.py
similarity index 97%
rename from lib/toaster/toastermain/settings-test.py
rename to lib/toaster/toastermain/settings_test.py
index 36b14c0..a322711 100644
--- a/lib/toaster/toastermain/settings-test.py
+++ b/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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list