Skip to content

Commit

Permalink
test: Skip test if console log is None (#5188)
Browse files Browse the repository at this point in the history
In the recent pycloudlib bump, Azure's console_log call went from
raising NotImplementedError to returning None if the boot diagnostic
log hasn't been initialized.
  • Loading branch information
TheRealFalcon authored Apr 18, 2024
1 parent ea54139 commit 70581bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration_tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ def get_console_log(client: "IntegrationInstance"):
console_log = client.instance.console_log()
except NotImplementedError:
pytest.skip("NotImplementedError when requesting console log")
if console_log is None:
pytest.skip("Console log has not been setup")
if console_log.lower().startswith("no console output"):
pytest.fail("no console output")
return console_log
Expand Down

0 comments on commit 70581bb

Please sign in to comment.