diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-05-19 13:59:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 10:09:02 +0100 |
commit | 5ce1adb177b17dc7b7cfe1dcddd42f387482f600 (patch) | |
tree | ac7c8dbf6cfd7411065def4b92b79b6c3adb8fc1 /bitbake/lib/toaster/toastermain | |
parent | 82dc991f487803d9ce632fc5d66b2c9b7c2c6825 (diff) | |
download | poky-5ce1adb177b17dc7b7cfe1dcddd42f387482f600.tar.gz |
bitbake: toaster: Add a specific test settings file
When running certain tests we want a particular database specified.
When bitbake toaster ui is being tested pass it these test settings so
that it uses the same database as the unit tests running.
(Bitbake rev: c52e34cac4362ba0a3cb3ea1fcb639e1d802aa85)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain')
-rw-r--r-- | bitbake/lib/toaster/toastermain/settings-test.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings-test.py b/bitbake/lib/toaster/toastermain/settings-test.py new file mode 100644 index 0000000000..36b14c06db --- /dev/null +++ b/bitbake/lib/toaster/toastermain/settings-test.py | |||
@@ -0,0 +1,41 @@ | |||
1 | # | ||
2 | # ex:ts=4:sw=4:sts=4:et | ||
3 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- | ||
4 | # | ||
5 | # BitBake Toaster Implementation | ||
6 | # | ||
7 | # Copyright (C) 2016 Intel Corporation | ||
8 | # | ||
9 | # This program is free software; you can redistribute it and/or modify | ||
10 | # it under the terms of the GNU General Public License version 2 as | ||
11 | # published by the Free Software Foundation. | ||
12 | # | ||
13 | # This program is distributed in the hope that it will be useful, | ||
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | # GNU General Public License for more details. | ||
17 | # | ||
18 | # You should have received a copy of the GNU General Public License along | ||
19 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
21 | |||
22 | # Django settings for Toaster project. | ||
23 | |||
24 | # Settings overlay to use for running tests | ||
25 | # DJANGO_SETTINGS_MODULE=toastermain.settings-test | ||
26 | |||
27 | from settings import * | ||
28 | |||
29 | DEBUG = True | ||
30 | TEMPLATE_DEBUG = DEBUG | ||
31 | |||
32 | DATABASES = { | ||
33 | 'default': { | ||
34 | 'ENGINE': 'django.db.backends.sqlite3', | ||
35 | 'NAME': '/tmp/toaster-test-db.sqlite', | ||
36 | 'TEST': { | ||
37 | 'ENGINE': 'django.db.backends.sqlite3', | ||
38 | 'NAME': '/tmp/toaster-test-db.sqlite', | ||
39 | } | ||
40 | } | ||
41 | } | ||