tests: adjust test to not depend on runc behavior
@@ -961,7 +961,10 @@ function teardown() {
[ "$status" -eq 0 ]
run crictl exec --sync "$ctr_id" doesnotexist
echo "$output"
- [ "$status" -ne 0 ]
+ [ "$status" -ne 0 ] || [ "$output" =~ "Exit code: 1" ]
+ cleanup_ctrs
+ cleanup_pods
+ stop_crio
}
@test "ctr execsync exit code" {
