corrupt-image test: fix an oops

Followup to #10033: actually implement the system reset test.
And, just out of paranoia, extend the warning-message check.

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago
2021-04-21 06:08:22 -06:00
parent 41677b192a
commit a273d25ed1

View File

@@ -77,7 +77,7 @@ function _corrupt_image_test() {
# Run the requested command. Confirm it succeeds, with suitable warnings
run_podman $*
is "$output" ".*error determining parent of image" \
is "$output" ".*error determining parent of image.*ignoring the error" \
"$* with missing $what_to_rm"
run_podman images -a --noheading
@@ -117,7 +117,7 @@ function _corrupt_image_test() {
}
@test "podman corrupt images - system reset" {
_corrupt_image_test "image prune -a -f"
_corrupt_image_test "system reset -f"
}
# END actual tests