summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/package.py
diff options
context:
space:
mode:
authorJose Perez Carranza <jose.perez.carranza@linux.intel.com>2017-06-15 05:49:22 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-23 11:44:12 +0100
commitab0780dfea9f0202ded3f2692633926aea35a5e6 (patch)
treede21c8e1e6e8e3444273a9a72fea1ad5fea19e1f /meta/lib/oeqa/selftest/cases/package.py
parentf822525c5830247e4ec8ea6be9aa36a97106cca8 (diff)
downloadpoky-ab0780dfea9f0202ded3f2692633926aea35a5e6.tar.gz
selftest: Add Testopia ID to test cases
Add decorator @OETestID() with proper Tesopia TC ID to the test cases that did not have it set. (From OE-Core rev: d7bc697534db911a3ce98537d772d87482a0f702) Signed-off-by: Jose Perez Carranza <jose.perez.carranza@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/package.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/package.py b/meta/lib/oeqa/selftest/cases/package.py
index 6a8bc9283f..5b9a6d1585 100644
--- a/meta/lib/oeqa/selftest/cases/package.py
+++ b/meta/lib/oeqa/selftest/cases/package.py
@@ -1,4 +1,5 @@
1from oeqa.selftest.case import OESelftestTestCase 1from oeqa.selftest.case import OESelftestTestCase
2from oeqa.core.decorator.oeid import OETestID
2from oeqa.utils.commands import bitbake, get_bb_vars 3from oeqa.utils.commands import bitbake, get_bb_vars
3import subprocess, os 4import subprocess, os
4import oe.path 5import oe.path
@@ -32,6 +33,7 @@ class VersionOrdering(OESelftestTestCase):
32 self.bindir = type(self).bindir 33 self.bindir = type(self).bindir
33 self.libdir = type(self).libdir 34 self.libdir = type(self).libdir
34 35
36 @OETestID(1880)
35 def test_dpkg(self): 37 def test_dpkg(self):
36 for ver1, ver2, sort in self.tests: 38 for ver1, ver2, sort in self.tests:
37 op = { -1: "<<", 0: "=", 1: ">>" }[sort] 39 op = { -1: "<<", 0: "=", 1: ">>" }[sort]
@@ -48,6 +50,7 @@ class VersionOrdering(OESelftestTestCase):
48 status = subprocess.call((oe.path.join(self.bindir, "dpkg"), "--compare-versions", ver1, op, ver2)) 50 status = subprocess.call((oe.path.join(self.bindir, "dpkg"), "--compare-versions", ver1, op, ver2))
49 self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2)) 51 self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2))
50 52
53 @OETestID(1881)
51 def test_opkg(self): 54 def test_opkg(self):
52 for ver1, ver2, sort in self.tests: 55 for ver1, ver2, sort in self.tests:
53 op = { -1: "<<", 0: "=", 1: ">>" }[sort] 56 op = { -1: "<<", 0: "=", 1: ">>" }[sort]
@@ -64,6 +67,7 @@ class VersionOrdering(OESelftestTestCase):
64 status = subprocess.call((oe.path.join(self.bindir, "opkg"), "compare-versions", ver1, op, ver2)) 67 status = subprocess.call((oe.path.join(self.bindir, "opkg"), "compare-versions", ver1, op, ver2))
65 self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2)) 68 self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2))
66 69
70 @OETestID(1882)
67 def test_rpm(self): 71 def test_rpm(self):
68 # Need to tell the Python bindings where to find its configuration 72 # Need to tell the Python bindings where to find its configuration
69 env = os.environ.copy() 73 env = os.environ.copy()