summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/selftest/cases
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2018-05-07 11:24:45 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2018-05-07 11:24:45 +0200
commit98b1cb7a2c90a203d885663ed2b6cc1bae08f5b3 (patch)
tree2c1e85bea4fdf8a8ec8d9596eea4a16826d08f6c /lib/oeqa/selftest/cases
parent8c71253e0f045fc9664e0a16596ddc100c9492c3 (diff)
downloadmeta-updater-98b1cb7a2c90a203d885663ed2b6cc1bae08f5b3.tar.gz
Give some more time for checking for successful provisioning.
Diffstat (limited to 'lib/oeqa/selftest/cases')
-rw-r--r--lib/oeqa/selftest/cases/updater.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oeqa/selftest/cases/updater.py b/lib/oeqa/selftest/cases/updater.py
index 6dcc8df..2efef15 100644
--- a/lib/oeqa/selftest/cases/updater.py
+++ b/lib/oeqa/selftest/cases/updater.py
@@ -671,12 +671,12 @@ def akt_native_run(testInst, cmd, **kwargs):
671def verifyProvisioned(testInst, machine): 671def verifyProvisioned(testInst, machine):
672 # Verify that device HAS provisioned. 672 # Verify that device HAS provisioned.
673 ran_ok = False 673 ran_ok = False
674 for delay in [5, 5, 5, 5, 10]: 674 for delay in [5, 5, 5, 5, 10, 10, 10, 10]:
675 sleep(delay)
676 stdout, stderr, retcode = testInst.qemu_command('aktualizr-info') 675 stdout, stderr, retcode = testInst.qemu_command('aktualizr-info')
677 if retcode == 0 and stderr == b'' and stdout.decode().find('Fetched metadata: yes') >= 0: 676 if retcode == 0 and stderr == b'' and stdout.decode().find('Fetched metadata: yes') >= 0:
678 ran_ok = True 677 ran_ok = True
679 break 678 break
679 sleep(delay)
680 testInst.assertIn(b'Device ID: ', stdout, 'Provisioning failed: ' + stderr.decode() + stdout.decode()) 680 testInst.assertIn(b'Device ID: ', stdout, 'Provisioning failed: ' + stderr.decode() + stdout.decode())
681 testInst.assertIn(b'Primary ecu hardware ID: ' + machine.encode(), stdout, 681 testInst.assertIn(b'Primary ecu hardware ID: ' + machine.encode(), stdout,
682 'Provisioning failed: ' + stderr.decode() + stdout.decode()) 682 'Provisioning failed: ' + stderr.decode() + stdout.decode())