summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2017-11-13 16:40:43 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2017-11-13 17:52:36 +0100
commit714f33c1d057db2058aaeadb9dec123199edf41e (patch)
tree2f8c6005ef63f037c042d24b9fde372d7a604e9a /lib
parent9178f7116aad6722121d3170ed76cf47c4d22cc4 (diff)
downloadmeta-updater-714f33c1d057db2058aaeadb9dec123199edf41e.tar.gz
Basic garage-deploy test.
Diffstat (limited to 'lib')
-rw-r--r--lib/oeqa/selftest/updater.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/oeqa/selftest/updater.py b/lib/oeqa/selftest/updater.py
index adae081..13e1c21 100644
--- a/lib/oeqa/selftest/updater.py
+++ b/lib/oeqa/selftest/updater.py
@@ -19,13 +19,20 @@ class SotaToolsTests(oeSelfTest):
19 logger.info('Running bitbake to build aktualizr-native tools') 19 logger.info('Running bitbake to build aktualizr-native tools')
20 bitbake('aktualizr-native') 20 bitbake('aktualizr-native')
21 21
22 def test_help(self): 22 def test_push_help(self):
23 bb_vars = get_bb_vars(['SYSROOT_DESTDIR', 'bindir'], 'aktualizr-native') 23 bb_vars = get_bb_vars(['SYSROOT_DESTDIR', 'bindir'], 'aktualizr-native')
24 p = bb_vars['SYSROOT_DESTDIR'] + bb_vars['bindir'] + "/" + "garage-push" 24 p = bb_vars['SYSROOT_DESTDIR'] + bb_vars['bindir'] + "/" + "garage-push"
25 self.assertTrue(os.path.isfile(p), msg = "No garage-push found (%s)" % p) 25 self.assertTrue(os.path.isfile(p), msg = "No garage-push found (%s)" % p)
26 result = runCmd('%s --help' % p, ignore_status=True) 26 result = runCmd('%s --help' % p, ignore_status=True)
27 self.assertEqual(result.status, 0, "Status not equal to 0. output: %s" % result.output) 27 self.assertEqual(result.status, 0, "Status not equal to 0. output: %s" % result.output)
28 28
29 def test_deploy_help(self):
30 bb_vars = get_bb_vars(['SYSROOT_DESTDIR', 'bindir'], 'aktualizr-native')
31 p = bb_vars['SYSROOT_DESTDIR'] + bb_vars['bindir'] + "/" + "garage-deploy"
32 self.assertTrue(os.path.isfile(p), msg = "No garage-deploy found (%s)" % p)
33 result = runCmd('%s --help' % p, ignore_status=True)
34 self.assertEqual(result.status, 0, "Status not equal to 0. output: %s" % result.output)
35
29 36
30class GarageSignTests(oeSelfTest): 37class GarageSignTests(oeSelfTest):
31 38