From ab0780dfea9f0202ded3f2692633926aea35a5e6 Mon Sep 17 00:00:00 2001 From: Jose Perez Carranza Date: Thu, 15 Jun 2017 05:49:22 -0700 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/package.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/lib/oeqa/selftest/cases/package.py') 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 @@ from oeqa.selftest.case import OESelftestTestCase +from oeqa.core.decorator.oeid import OETestID from oeqa.utils.commands import bitbake, get_bb_vars import subprocess, os import oe.path @@ -32,6 +33,7 @@ class VersionOrdering(OESelftestTestCase): self.bindir = type(self).bindir self.libdir = type(self).libdir + @OETestID(1880) def test_dpkg(self): for ver1, ver2, sort in self.tests: op = { -1: "<<", 0: "=", 1: ">>" }[sort] @@ -48,6 +50,7 @@ class VersionOrdering(OESelftestTestCase): status = subprocess.call((oe.path.join(self.bindir, "dpkg"), "--compare-versions", ver1, op, ver2)) self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2)) + @OETestID(1881) def test_opkg(self): for ver1, ver2, sort in self.tests: op = { -1: "<<", 0: "=", 1: ">>" }[sort] @@ -64,6 +67,7 @@ class VersionOrdering(OESelftestTestCase): status = subprocess.call((oe.path.join(self.bindir, "opkg"), "compare-versions", ver1, op, ver2)) self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2)) + @OETestID(1882) def test_rpm(self): # Need to tell the Python bindings where to find its configuration env = os.environ.copy() -- cgit v1.2.3-54-g00ecf