diff options
author | Lucian Musat <georgex.l.musat@intel.com> | 2014-07-09 11:36:47 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-10 17:38:35 +0100 |
commit | d8364371b2987d1396cfb85658565096ff72a2cd (patch) | |
tree | 3b4d13b34f9486fde32e42bdf7ce20d4066f4a4d /meta/lib/oeqa/selftest/oescripts.py | |
parent | 79dae067d99393967c1d565dc7ca2081c966a558 (diff) | |
download | poky-d8364371b2987d1396cfb85658565096ff72a2cd.tar.gz |
oeqs/selftest: Added test case decorators for the rest of selftest testcases except toaster
(From OE-Core rev: 3c820db4624a062644a26de1866123a10a78a006)
Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | |||