summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/sdk/context.py')
-rw-r--r--meta/lib/oeqa/sdk/context.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/context.py b/meta/lib/oeqa/sdk/context.py
index 7c091c0534..ec8972d05a 100644
--- a/meta/lib/oeqa/sdk/context.py
+++ b/meta/lib/oeqa/sdk/context.py
@@ -29,7 +29,13 @@ class OESDKTestContext(OETestContext):
29 def hasHostPackage(self, pkg): 29 def hasHostPackage(self, pkg):
30 return self._hasPackage(self.host_pkg_manifest, pkg) 30 return self._hasPackage(self.host_pkg_manifest, pkg)
31 31
32 def hasTargetPackage(self, pkg): 32 def hasTargetPackage(self, pkg, multilib=False):
33 if multilib:
34 # match multilib according to sdk_env
35 mls = self.td.get('MULTILIB_VARIANTS', '').split()
36 for ml in mls:
37 if ('ml'+ml) in self.sdk_env:
38 pkg = ml + '-' + pkg
33 return self._hasPackage(self.target_pkg_manifest, pkg) 39 return self._hasPackage(self.target_pkg_manifest, pkg)
34 40
35class OESDKTestContextExecutor(OETestContextExecutor): 41class OESDKTestContextExecutor(OETestContextExecutor):