Patchwork oeqa/runtime: smart: don't run in auto mode when rpm is not the pm

login
register
mail settings
Submitter Stanacar, StefanX
Date Feb. 12, 2014, 11:49 a.m.
Message ID <1392205780-24534-1-git-send-email-stefanx.stanacar@intel.com>
Download mbox | patch
Permalink /patch/66629/
State New
Headers show

Comments

Stanacar, StefanX - Feb. 12, 2014, 11:49 a.m.
TEST_SUITES = "auto" would run smart tests even for non-rpm images,
which is pointless.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
---
 meta/lib/oeqa/runtime/smart.py | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py
index 8299bf3..195f117 100644
--- a/meta/lib/oeqa/runtime/smart.py
+++ b/meta/lib/oeqa/runtime/smart.py
@@ -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):