summaryrefslogtreecommitdiff
path: root/tests/integration_tests/test_upgrade.py
diff options
context:
space:
mode:
authorJames Falcon <TheRealFalcon@users.noreply.github.com>2021-01-26 11:25:04 -0600
committerGitHub <noreply@github.com>2021-01-26 12:25:04 -0500
commita9c904dc6438c908cd5341312311dfbbb18c81d2 (patch)
tree6d15e0b32a4a7f7160811225b1449ab4782cbb28 /tests/integration_tests/test_upgrade.py
parent1527efa740ce7e66d9506ea62b0b8010d71a4104 (diff)
downloadvyos-cloud-init-a9c904dc6438c908cd5341312311dfbbb18c81d2.tar.gz
vyos-cloud-init-a9c904dc6438c908cd5341312311dfbbb18c81d2.zip
Remove 'remove-raise-on-failure' calls from integration_tests (#788)
pycloudlib no longer raises exceptions when cloud-init fails to start, and the API has been updated accordingly. Changes have been made to integration tests accordingly
Diffstat (limited to 'tests/integration_tests/test_upgrade.py')
-rw-r--r--tests/integration_tests/test_upgrade.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/integration_tests/test_upgrade.py b/tests/integration_tests/test_upgrade.py
index 660d363f..233a574b 100644
--- a/tests/integration_tests/test_upgrade.py
+++ b/tests/integration_tests/test_upgrade.py
@@ -43,15 +43,14 @@ def _output_to_compare(instance, file_path, netcfg_path):
def _restart(instance):
# work around pad.lv/1908287
- try:
- instance.restart(raise_on_cloudinit_failure=True)
- except OSError as e:
+ instance.restart()
+ if not instance.execute('cloud-init status --wait --long').ok:
for _ in range(10):
time.sleep(5)
result = instance.execute('cloud-init status --wait --long')
if result.ok:
return
- raise e
+ raise Exception("Cloud-init didn't finish starting up")
@pytest.mark.sru_2020_11