Skip to content

Commit

Permalink
tests: upgrade tests should only validate current boot log
Browse files Browse the repository at this point in the history
In upgrade tests, we should only validate clean log on the latest
boot to avoid false positives for warnings/errors which were removed
by upgrade.
  • Loading branch information
blackboxsw committed Feb 29, 2024
1 parent fc150eb commit c8507a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration_tests/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def test_subsequent_boot_of_upgraded_package(session_cloud: IntegrationCloud):

with session_cloud.launch(launch_kwargs=launch_kwargs) as instance:
instance.install_new_cloud_init(source, clean=False)
# Ensure we aren't looking at any prior warnings/errors from prior boot
instance.execute("rm /var/log/cloud-init.log")
instance.restart()
log = instance.read_from_file("/var/log/cloud-init.log")
verify_clean_log(log)
Expand Down

0 comments on commit c8507a4

Please sign in to comment.