]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime: smart: don't run in auto mode when rpm is not the pm
authorStefan Stanacar <stefanx.stanacar@intel.com>
Wed, 12 Feb 2014 11:49:40 +0000 (13:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Feb 2014 14:18:00 +0000 (14:18 +0000)
TEST_SUITES = "auto" would run smart tests even for non-rpm images,
which is pointless.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/smart.py

index 8299bf373a0044c2f279e78712b1ed08b243c166..195f1170c6c9a811d99768b94d1c2357530441b1 100644 (file)
@@ -9,6 +9,8 @@ def setUpModule():
         skipModule("Image doesn't have package management feature")
     if not oeRuntimeTest.hasPackage("smart"):
         skipModule("Image doesn't have smart installed")
+    if "package_rpm" != oeRuntimeTest.tc.d.getVar("PACKAGE_CLASSES", True).split()[0]:
+        skipModule("Rpm is not the primary package manager")
 
 class SmartTest(oeRuntimeTest):