summaryrefslogtreecommitdiffstats
path: root/lib/oeqa
diff options
context:
space:
mode:
authorZee314159 <252806294@qq.com>2019-07-24 16:14:13 +0200
committerZee314159 <252806294@qq.com>2019-07-24 16:15:56 +0200
commitf90a3db48e5a0eb497823c23627c0a160df36380 (patch)
tree0152f4423348569955aeaa72037414927f4309f0 /lib/oeqa
parent06c6f74138837a25f0eef2f0a8b4c3499a705eea (diff)
downloadmeta-updater-f90a3db48e5a0eb497823c23627c0a160df36380.tar.gz
Checked stderr and stdout
Signed-off-by: Zee314159 <252806294@qq.com>
Diffstat (limited to 'lib/oeqa')
-rw-r--r--lib/oeqa/selftest/cases/testutils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/oeqa/selftest/cases/testutils.py b/lib/oeqa/selftest/cases/testutils.py
index 6feb4e2..28087ca 100644
--- a/lib/oeqa/selftest/cases/testutils.py
+++ b/lib/oeqa/selftest/cases/testutils.py
@@ -133,7 +133,9 @@ def verifyProvisioned(testInst, machine):
133 # Then wait for aktualizr to provision. 133 # Then wait for aktualizr to provision.
134 if stdout.decode().find('Fetched metadata: yes') < 0: 134 if stdout.decode().find('Fetched metadata: yes') < 0:
135 stdout, stderr, retcode = testInst.qemu_command('aktualizr-info --wait-until-provisioned') 135 stdout, stderr, retcode = testInst.qemu_command('aktualizr-info --wait-until-provisioned')
136 136
137 testInst.assertFalse(retcode, 'aktualizr-info failed: ' + stderr.decode() + stdout.decode())
138 testInst.assertEqual(stderr, b'', 'aktualizr-info failed: ' + stderr.decode() + stdout.decode())
137 testInst.assertIn(b'Device ID: ', stdout, 'Provisioning failed: ' + stderr.decode() + stdout.decode()) 139 testInst.assertIn(b'Device ID: ', stdout, 'Provisioning failed: ' + stderr.decode() + stdout.decode())
138 testInst.assertIn(b'Primary ecu hardware ID: ' + machine.encode(), stdout, 140 testInst.assertIn(b'Primary ecu hardware ID: ' + machine.encode(), stdout,
139 'Provisioning failed: ' + stderr.decode() + stdout.decode()) 141 'Provisioning failed: ' + stderr.decode() + stdout.decode())