diff options
| author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-05-12 14:40:21 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-06 19:02:43 +0100 |
| commit | 157c3be2ca93f076033f725ec1ee912df91f7488 (patch) | |
| tree | 8ef896ff7adf78d63b34059cd5b017a4f0a3419a /meta/lib/oeqa/selftest/oescripts.py | |
| parent | 10c512b60d1167122b5fe778b93838dca3def717 (diff) | |
| download | poky-157c3be2ca93f076033f725ec1ee912df91f7488.tar.gz | |
oeqa/selftest/cases: Migrate test cases into the new oe-qa framework
New framework has different classes/decorators so adapt current test cases to
support these. Changes include changes on base classes and decorators.
Also include paths in selftest/__init__.py isn't needed because the
loader is the standard unittest one.
(From OE-Core rev: ddbbefdd124604d10bd47dd0266b55a764fcc0ab)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@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 | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/meta/lib/oeqa/selftest/oescripts.py b/meta/lib/oeqa/selftest/oescripts.py deleted file mode 100644 index 29547f56a9..0000000000 --- a/meta/lib/oeqa/selftest/oescripts.py +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | import datetime | ||
| 2 | import unittest | ||
| 3 | import os | ||
| 4 | import re | ||
| 5 | import shutil | ||
| 6 | |||
| 7 | import oeqa.utils.ftools as ftools | ||
| 8 | from oeqa.selftest.base import oeSelfTest | ||
| 9 | from oeqa.selftest.buildhistory import BuildhistoryBase | ||
| 10 | from oeqa.utils.commands import Command, runCmd, bitbake, get_bb_var, get_test_layer | ||
| 11 | from oeqa.utils.decorators import testcase | ||
| 12 | |||
| 13 | class BuildhistoryDiffTests(BuildhistoryBase): | ||
| 14 | |||
| 15 | @testcase(295) | ||
| 16 | def test_buildhistory_diff(self): | ||
| 17 | target = 'xcursor-transparent-theme' | ||
| 18 | self.run_buildhistory_operation(target, target_config="PR = \"r1\"", change_bh_location=True) | ||
| 19 | self.run_buildhistory_operation(target, target_config="PR = \"r0\"", change_bh_location=False, expect_error=True) | ||
| 20 | result = runCmd("buildhistory-diff -p %s" % get_bb_var('BUILDHISTORY_DIR')) | ||
| 21 | expected_output = 'PR changed from "r1" to "r0"' | ||
| 22 | self.assertTrue(expected_output in result.output, msg="Did not find expected output: %s" % result.output) | ||
