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:43:01 +0000 |
| commit | aca3afcb592ef4ff070760ab2aafba03152a57fb (patch) | |
| tree | 3f373c82dc2449befb12eb1f8a74b4f48b769382 /meta/lib/oeqa/sdk/cases/buildiptables.py | |
| parent | 2e77eff6ccba84b5229971794a31122dfa033e07 (diff) | |
| download | poky-aca3afcb592ef4ff070760ab2aafba03152a57fb.tar.gz | |
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]
(From OE-Core rev: 59a99cd8661af594ee0c33e086578d29d50a6268)
Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 @@ | |||
| 1 | import unittest | ||
| 1 | from oeqa.sdk.case import OESDKTestCase | 2 | from oeqa.sdk.case import OESDKTestCase |
| 2 | from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject | 3 | from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject |
| 3 | 4 | ||
| 5 | |||
| 4 | class BuildIptablesTest(OESDKTestCase): | 6 | class BuildIptablesTest(OESDKTestCase): |
| 5 | td_vars = ['DATETIME'] | 7 | td_vars = ['DATETIME'] |
| 6 | 8 | ||
| @@ -13,6 +15,11 @@ class BuildIptablesTest(OESDKTestCase): | |||
| 13 | self.tc.sdk_dir, self.td['DATETIME'], dl_dir=dl_dir) | 15 | self.tc.sdk_dir, self.td['DATETIME'], dl_dir=dl_dir) |
| 14 | self.project.download_archive() | 16 | self.project.download_archive() |
| 15 | 17 | ||
| 18 | machine = self.td.get("MACHINE") | ||
| 19 | |||
| 20 | if not self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine): | ||
| 21 | raise unittest.SkipTest("SDK doesn't contain a cross-canadian toolchain") | ||
| 22 | |||
| 16 | def test_iptables(self): | 23 | def test_iptables(self): |
| 17 | self.assertEqual(self.project.run_configure(), 0, | 24 | self.assertEqual(self.project.run_configure(), 0, |
| 18 | msg="Running configure failed") | 25 | msg="Running configure failed") |
