diff options
author | Zee314159 <252806294@qq.com> | 2019-07-17 15:19:29 +0200 |
---|---|---|
committer | Zee314159 <252806294@qq.com> | 2019-07-18 06:03:58 +0200 |
commit | 7bb9224cafa2586ea9a44bad24d794ac5daa957e (patch) | |
tree | 6979d3cdca5a0316c53882f1ced8f884a2d46087 /lib/oeqa/selftest/cases/testutils.py | |
parent | 567ed002259985b5a2afea2f90e5bf2df08f7147 (diff) | |
download | meta-updater-7bb9224cafa2586ea9a44bad24d794ac5daa957e.tar.gz |
update oe-selftests to use wait-until-provisionedfeat/OTA-2844/akt-info-wait-until-provisioned
Signed-off-by: Zee314159 <252806294@qq.com>
Diffstat (limited to 'lib/oeqa/selftest/cases/testutils.py')
-rw-r--r-- | lib/oeqa/selftest/cases/testutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oeqa/selftest/cases/testutils.py b/lib/oeqa/selftest/cases/testutils.py index f8b1904..7ca7361 100644 --- a/lib/oeqa/selftest/cases/testutils.py +++ b/lib/oeqa/selftest/cases/testutils.py | |||
@@ -93,7 +93,7 @@ def verifyNotProvisioned(testInst, machine): | |||
93 | print('Checking output of aktualizr-info:') | 93 | print('Checking output of aktualizr-info:') |
94 | ran_ok = False | 94 | ran_ok = False |
95 | for delay in [5, 5, 5, 5, 10, 10, 10, 10]: | 95 | for delay in [5, 5, 5, 5, 10, 10, 10, 10]: |
96 | stdout, stderr, retcode = testInst.qemu_command('aktualizr-info') | 96 | stdout, stderr, retcode = testInst.qemu_command('aktualizr-info --wait-until-provisioned') |
97 | if retcode == 0 and stderr == b'': | 97 | if retcode == 0 and stderr == b'': |
98 | ran_ok = True | 98 | ran_ok = True |
99 | break | 99 | break |
@@ -115,7 +115,7 @@ def verifyProvisioned(testInst, machine): | |||
115 | # Verify that device HAS provisioned. | 115 | # Verify that device HAS provisioned. |
116 | ran_ok = False | 116 | ran_ok = False |
117 | for delay in [5, 5, 5, 5, 10, 10, 10, 10]: | 117 | for delay in [5, 5, 5, 5, 10, 10, 10, 10]: |
118 | stdout, stderr, retcode = testInst.qemu_command('aktualizr-info') | 118 | stdout, stderr, retcode = testInst.qemu_command('aktualizr-info --wait-until-provisioned') |
119 | if retcode == 0 and stderr == b'' and stdout.decode().find('Fetched metadata: yes') >= 0: | 119 | if retcode == 0 and stderr == b'' and stdout.decode().find('Fetched metadata: yes') >= 0: |
120 | ran_ok = True | 120 | ran_ok = True |
121 | break | 121 | break |