]> code.ossystems Code Review - openembedded-core.git/commitdiff
runtime/cases/connman.py: Stop using oeRuntimeTest
authorMariano Lopez <mariano.lopez@linux.intel.com>
Wed, 25 Jan 2017 12:20:04 +0000 (12:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 31 Jan 2017 14:40:18 +0000 (14:40 +0000)
oeRuntimeTest class is not used anymore as part of runtime
migration, this particular case was missed, so fix it.

[YOCTO #10964]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/runtime/cases/connman.py

index 8b47108a371f9d342be92c27169a75d1ba441ea3..12456b41725e088215afb7e5252187f3b89215eb 100644 (file)
@@ -6,7 +6,7 @@ from oeqa.runtime.decorator.package import OEHasPackage
 class ConnmanTest(OERuntimeTestCase):
 
     def service_status(self, service):
-        if oeRuntimeTest.hasFeature("systemd"):
+        if 'systemd' in self.tc.td['DISTRO_FEATURES']:
             (_, output) = self.target.run('systemctl status -l %s' % service)
             return output
         else: