summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2017-11-13 15:48:11 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2017-11-15 17:54:36 +0100
commitde48c402e207cde0c723ebb8ff5c2992101cfc27 (patch)
tree4e40af1bac0a368f4e222db1488a0feafbf0e864 /lib
parentf64cbdb8deadacbece998636b7d3bc83e7ac2ec9 (diff)
downloadmeta-updater-de48c402e207cde0c723ebb8ff5c2992101cfc27.tar.gz
garage_push.py: Check distro features
Ensure that systemd and sota are among the distro features. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/oeqa/selftest/updater.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/oeqa/selftest/updater.py b/lib/oeqa/selftest/updater.py
index 6339e6e..9945b40 100644
--- a/lib/oeqa/selftest/updater.py
+++ b/lib/oeqa/selftest/updater.py
@@ -57,6 +57,14 @@ class HsmTests(oeSelfTest):
57 57
58class GeneralTests(oeSelfTest): 58class GeneralTests(oeSelfTest):
59 59
60 def test_feature_sota(self):
61 result = get_bb_var('DISTRO_FEATURES').find('sota')
62 self.assertNotEqual(result, -1, 'Feature "sota" not set at DISTRO_FEATURES');
63
64 def test_feature_systemd(self):
65 result = get_bb_var('DISTRO_FEATURES').find('systemd')
66 self.assertNotEqual(result, -1, 'Feature "systemd" not set at DISTRO_FEATURES');
67
60 def test_java(self): 68 def test_java(self):
61 result = runCmd('which java', ignore_status=True) 69 result = runCmd('which java', ignore_status=True)
62 self.assertEqual(result.status, 0, "Java not found.") 70 self.assertEqual(result.status, 0, "Java not found.")