From c5f147b4ab194606266d3478c3784518d3ec66c9 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Sat, 17 Oct 2015 10:45:52 -0700 Subject: 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 Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/tests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bitbake') 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 from orm.models import CustomImageRecipe, ProjectVariable from orm.models import Branch +import toastermain + from toastergui.tables import SoftwareRecipesTable import json from bs4 import BeautifulSoup @@ -40,6 +42,10 @@ import re PROJECT_NAME = "test project" CLI_BUILDS_PROJECT_NAME = 'Command line builds' +# by default, tests are run in build mode; to run in analysis mode, +# set this to False in individual test cases +toastermain.settings.BUILD_MODE = True + class ViewTests(TestCase): """Tests to verify view APIs.""" -- cgit v1.2.3-54-g00ecf