summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk/cases/buildiptables.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildiptables.py')
-rw-r--r--meta/lib/oeqa/sdk/cases/buildiptables.py7
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 @@
1import unittest
1from oeqa.sdk.case import OESDKTestCase 2from oeqa.sdk.case import OESDKTestCase
2from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject 3from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject
3 4
5
4class BuildIptablesTest(OESDKTestCase): 6class 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")