summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-07-13 15:12:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-11 00:09:27 +0100
commit36f71db680db36a2378b5c03b70819ecaf5814fa (patch)
tree882682c4825e2a167e4503ff537f40987978c872 /bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py
parent504a85822e240bef868de54bc55edf265ba87510 (diff)
downloadpoky-36f71db680db36a2378b5c03b70819ecaf5814fa.tar.gz
bitbake: toaster-tests: add tests for build dashboard menu and summary visibility
Test that the build dashboard only shows a menu and a build summary area if a build has properly "started" (i.e. has at least one Variable object associated with it). [YOCTO #8443] (Bitbake rev: 9e16f76fb254ae967ded6c21251243b2af9b16b6) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py')
-rw-r--r--bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py
index 39b0e207fc..1c627ad498 100644
--- a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py
+++ b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py
@@ -26,7 +26,7 @@ from tests.browser.selenium_helpers import SeleniumTestCase
26 26
27from orm.models import Project, Release, BitbakeVersion, Build, Target, Package 27from orm.models import Project, Release, BitbakeVersion, Build, Target, Package
28from orm.models import Target_Image_File, TargetSDKFile, TargetKernelFile 28from orm.models import Target_Image_File, TargetSDKFile, TargetKernelFile
29from orm.models import Target_Installed_Package 29from orm.models import Target_Installed_Package, Variable
30 30
31class TestBuildDashboardPageArtifacts(SeleniumTestCase): 31class TestBuildDashboardPageArtifacts(SeleniumTestCase):
32 """ Tests for artifacts on the build dashboard /build/X """ 32 """ Tests for artifacts on the build dashboard /build/X """
@@ -151,6 +151,11 @@ class TestBuildDashboardPageArtifacts(SeleniumTestCase):
151 started_on=now, completed_on=timezone.now(), 151 started_on=now, completed_on=timezone.now(),
152 outcome=Build.SUCCEEDED) 152 outcome=Build.SUCCEEDED)
153 153
154 # add a variable to the build so that it counts as "started"
155 Variable.objects.create(build=build,
156 variable_name='Christopher',
157 variable_value='Lee')
158
154 target = Target.objects.create(is_image=True, build=build, 159 target = Target.objects.create(is_image=True, build=build,
155 task='', target='core-image-minimal', 160 task='', target='core-image-minimal',
156 license_manifest_path='/home/foo/license.manifest', 161 license_manifest_path='/home/foo/license.manifest',