summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/oelib/license.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-06-08 11:32:06 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-12 15:08:30 +0100
commitc3587b7d1005c8564e54263768d0088afbb5c946 (patch)
treee39c75456d0b6304108399bc2d13a35b69e8c1dc /meta/lib/oeqa/selftest/cases/oelib/license.py
parent652df69b026f1188b99efb7a2a237a44928ff6a9 (diff)
downloadpoky-c3587b7d1005c8564e54263768d0088afbb5c946.tar.gz
oeqa/cases/oelib: Change default case class to unittest.case.TestCase
Some tests doesn't need call bitbake so it is better to use the basic unittest case class. [YOCTO #10828] (From OE-Core rev: 4d01610f36eaee8da3126bb5045856279371fd17) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/oelib/license.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/oelib/license.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/oelib/license.py b/meta/lib/oeqa/selftest/cases/oelib/license.py
index a6d9c9ac7a..bfd9ed9c29 100644
--- a/meta/lib/oeqa/selftest/cases/oelib/license.py
+++ b/meta/lib/oeqa/selftest/cases/oelib/license.py
@@ -1,4 +1,4 @@
1from oeqa.selftest.case import OESelftestTestCase 1from unittest.case import TestCase
2import oe.license 2import oe.license
3 3
4class SeenVisitor(oe.license.LicenseVisitor): 4class SeenVisitor(oe.license.LicenseVisitor):
@@ -9,7 +9,7 @@ class SeenVisitor(oe.license.LicenseVisitor):
9 def visit_Str(self, node): 9 def visit_Str(self, node):
10 self.seen.append(node.s) 10 self.seen.append(node.s)
11 11
12class TestSingleLicense(OESelftestTestCase): 12class TestSingleLicense(TestCase):
13 licenses = [ 13 licenses = [
14 "GPLv2", 14 "GPLv2",
15 "LGPL-2.0", 15 "LGPL-2.0",
@@ -37,7 +37,7 @@ class TestSingleLicense(OESelftestTestCase):
37 self.parse(license) 37 self.parse(license)
38 self.assertEqual(cm.exception.license, license) 38 self.assertEqual(cm.exception.license, license)
39 39
40class TestSimpleCombinations(OESelftestTestCase): 40class TestSimpleCombinations(TestCase):
41 tests = { 41 tests = {
42 "FOO&BAR": ["FOO", "BAR"], 42 "FOO&BAR": ["FOO", "BAR"],
43 "BAZ & MOO": ["BAZ", "MOO"], 43 "BAZ & MOO": ["BAZ", "MOO"],