diff options
| author | Elliot Smith <elliot.smith@intel.com> | 2015-10-17 10:45:52 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-27 07:24:31 +0000 |
| commit | c5f147b4ab194606266d3478c3784518d3ec66c9 (patch) | |
| tree | 0626bc5070cfafb53db81f8fac7c876e7acea071 /bitbake/lib | |
| parent | 1d17109d62f072ea836349805a08523a43f0475d (diff) | |
| download | poky-c5f147b4ab194606266d3478c3784518d3ec66c9.tar.gz | |
bitbake: toaster: Run tests in build mode
Now that the UI content is conditional on whether BUILD_MODE
is active, modify the existing tests so that they run in
this mode by default.
[YOCTO #8514]
(Bitbake rev: 991712f3f88759e2d68af5a3fe83c1395c4f67f6)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index 29dd7fda77..9e6c46a253 100644 --- a/bitbake/lib/toaster/toastergui/tests.py +++ b/bitbake/lib/toaster/toastergui/tests.py | |||
| @@ -32,6 +32,8 @@ from orm.models import Layer_Version, Recipe, Machine, ProjectLayer, Target | |||
| 32 | from orm.models import CustomImageRecipe, ProjectVariable | 32 | from orm.models import CustomImageRecipe, ProjectVariable |
| 33 | from orm.models import Branch | 33 | from orm.models import Branch |
| 34 | 34 | ||
| 35 | import toastermain | ||
| 36 | |||
| 35 | from toastergui.tables import SoftwareRecipesTable | 37 | from toastergui.tables import SoftwareRecipesTable |
| 36 | import json | 38 | import json |
| 37 | from bs4 import BeautifulSoup | 39 | from bs4 import BeautifulSoup |
| @@ -40,6 +42,10 @@ import re | |||
| 40 | PROJECT_NAME = "test project" | 42 | PROJECT_NAME = "test project" |
| 41 | CLI_BUILDS_PROJECT_NAME = 'Command line builds' | 43 | CLI_BUILDS_PROJECT_NAME = 'Command line builds' |
| 42 | 44 | ||
| 45 | # by default, tests are run in build mode; to run in analysis mode, | ||
| 46 | # set this to False in individual test cases | ||
| 47 | toastermain.settings.BUILD_MODE = True | ||
| 48 | |||
| 43 | class ViewTests(TestCase): | 49 | class ViewTests(TestCase): |
| 44 | """Tests to verify view APIs.""" | 50 | """Tests to verify view APIs.""" |
| 45 | 51 | ||
