Skip to content

Commit

Permalink
test: Accept different criu test failure error message
Browse files Browse the repository at this point in the history
Current Debian testing got a new podman version which changed the error
message when `criu` is not available, to "failed to check for criu
version: "criu": executable file not found in $PATH".

This is a bit less nice than the previous version requirement, but still
clear enough, so accept it.
  • Loading branch information
martinpitt committed Oct 10, 2023
1 parent 7d5d6cf commit 9386ca2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -1306,8 +1306,10 @@ class TestApplication(testlib.MachineCase):
b.click('.pf-v5-c-modal-box button:contains(Checkpoint)')
b.wait_not_present('.modal_dialog')

b.wait(lambda: "checkpoint/restore requires at least criu"
in b.text(".pf-v5-c-alert.pf-m-danger > .pf-v5-c-alert__description").lower())
def criu_alert():
text = b.text(".pf-v5-c-alert.pf-m-danger > .pf-v5-c-alert__description").lower()
return "checkpoint/restore requires at least criu" in text or "failed to check for criu" in text
b.wait(criu_alert)
return

# Run a container
Expand Down

0 comments on commit 9386ca2

Please sign in to comment.