Skip to content

Commit

Permalink
Adapt tests to handle metadata output
Browse files Browse the repository at this point in the history
The output of '--all' changes with the introduction of additional
information. This removes two hardcoded lines and adds it to the section
that the line just needs to exist somewhere.

Signed-off-by: Adrian Reber <[email protected]>
  • Loading branch information
adrianreber committed Oct 17, 2024
1 parent 1c7214d commit fc5ebfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/checkpointctl.bats
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,14 @@ function teardown() {
[[ ${lines[9]} == *"CRIU dump statistics"* ]]
[[ ${lines[13]} == *"Memwrite time"* ]]
[[ ${lines[14]} =~ [1-9] ]]
[[ ${lines[16]} == *"Process tree"* ]]
[[ ${lines[17]} == *"piggie"* ]]

expected_messages=(
"[REG 0]"
"[cwd]"
"[root]"
"Metadata"
"Process tree"
"piggie"
"Overview of mounts"
"Destination"
"proc"
Expand Down

0 comments on commit fc5ebfa

Please sign in to comment.