diff options
author | Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com> | 2017-01-25 11:07:34 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-31 14:40:17 +0000 |
commit | 59a99cd8661af594ee0c33e086578d29d50a6268 (patch) | |
tree | 1bc81c9ab67867ad3ff3409735fd995baed6703d /meta/lib/oeqa/sdk/cases/buildiptables.py | |
parent | c11fcd6fbde4a90913960b223451e0ce9e6b4b64 (diff) | |
download | openembedded-core-59a99cd8661af594ee0c33e086578d29d50a6268.tar.gz openembedded-core-59a99cd8661af594ee0c33e086578d29d50a6268.tar.bz2 openembedded-core-59a99cd8661af594ee0c33e086578d29d50a6268.zip |
oeqa/sdk: Updates sanity tests for minimal eSDK
Updates sanity tests to cope with minimal eSDK installer
1. Skips the validation of sanity if packagegroup-cross-canadian is in
host package.
2. Skips if SDK does not include toolchain at cases/devtool.py
This should fix [YOCTO #10794]
Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildiptables.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildiptables.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildiptables.py b/meta/lib/oeqa/sdk/cases/buildiptables.py index 532b5de8e6..0bd00d125a 100644 --- a/meta/lib/oeqa/sdk/cases/buildiptables.py +++ b/meta/lib/oeqa/sdk/cases/buildiptables.py @@ -1,6 +1,8 @@ +import unittest from oeqa.sdk.case import OESDKTestCase from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject + class BuildIptablesTest(OESDKTestCase): td_vars = ['DATETIME'] @@ -13,6 +15,11 @@ class BuildIptablesTest(OESDKTestCase): self.tc.sdk_dir, self.td['DATETIME'], dl_dir=dl_dir) self.project.download_archive() + machine = self.td.get("MACHINE") + + if not self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine): + raise unittest.SkipTest("SDK doesn't contain a cross-canadian toolchain") + def test_iptables(self): self.assertEqual(self.project.run_configure(), 0, msg="Running configure failed") |