]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: Run tests in build mode
authorElliot Smith <elliot.smith@intel.com>
Sat, 17 Oct 2015 17:45:52 +0000 (10:45 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Oct 2015 07:23:22 +0000 (07:23 +0000)
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]

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>
lib/toaster/toastergui/tests.py

index 29dd7fda77892a56c9a9698ba7638a74870d787e..9e6c46a25310238b9d918ff47a5957b091b0a2d6 100644 (file)
@@ -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."""