diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/oescripts.py')
-rw-r--r-- | meta/lib/oeqa/selftest/oescripts.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/meta/lib/oeqa/selftest/oescripts.py b/meta/lib/oeqa/selftest/oescripts.py index 4aab2ed095..31cd50809c 100644 --- a/meta/lib/oeqa/selftest/oescripts.py +++ b/meta/lib/oeqa/selftest/oescripts.py | |||
@@ -8,9 +8,11 @@ import oeqa.utils.ftools as ftools | |||
8 | from oeqa.selftest.base import oeSelfTest | 8 | from oeqa.selftest.base import oeSelfTest |
9 | from oeqa.selftest.buildhistory import BuildhistoryBase | 9 | from oeqa.selftest.buildhistory import BuildhistoryBase |
10 | from oeqa.utils.commands import Command, runCmd, bitbake, get_bb_var, get_test_layer | 10 | from oeqa.utils.commands import Command, runCmd, bitbake, get_bb_var, get_test_layer |
11 | from oeqa.utils.decorators import testcase | ||
11 | 12 | ||
12 | class TestScripts(oeSelfTest): | 13 | class TestScripts(oeSelfTest): |
13 | 14 | ||
15 | @testcase(300) | ||
14 | def test_cleanup_workdir(self): | 16 | def test_cleanup_workdir(self): |
15 | path = os.path.dirname(get_bb_var('WORKDIR', 'gzip')) | 17 | path = os.path.dirname(get_bb_var('WORKDIR', 'gzip')) |
16 | old_version_recipe = os.path.join(get_bb_var('COREBASE'), 'meta/recipes-extended/gzip/gzip_1.3.12.bb') | 18 | old_version_recipe = os.path.join(get_bb_var('COREBASE'), 'meta/recipes-extended/gzip/gzip_1.3.12.bb') |
@@ -41,6 +43,7 @@ class TestScripts(oeSelfTest): | |||
41 | 43 | ||
42 | class BuildhistoryDiffTests(BuildhistoryBase): | 44 | class BuildhistoryDiffTests(BuildhistoryBase): |
43 | 45 | ||
46 | @testcase(295) | ||
44 | def test_buildhistory_diff(self): | 47 | def test_buildhistory_diff(self): |
45 | self.add_command_to_tearDown('cleanup-workdir') | 48 | self.add_command_to_tearDown('cleanup-workdir') |
46 | target = 'xcursor-transparent-theme' | 49 | target = 'xcursor-transparent-theme' |
@@ -49,12 +52,3 @@ class BuildhistoryDiffTests(BuildhistoryBase): | |||
49 | result = runCmd("buildhistory-diff -p %s" % get_bb_var('BUILDHISTORY_DIR')) | 52 | result = runCmd("buildhistory-diff -p %s" % get_bb_var('BUILDHISTORY_DIR')) |
50 | expected_output = 'PR changed from "r1" to "r0"' | 53 | expected_output = 'PR changed from "r1" to "r0"' |
51 | self.assertTrue(expected_output in result.output, msg="Did not find expected output: %s" % result.output) | 54 | self.assertTrue(expected_output in result.output, msg="Did not find expected output: %s" % result.output) |
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||