test/image.bats: rm useless code
This code is not doing anything but
- printing image ids (that were already printed earlier by `echo
"$output"`);
- setting status=1 which is not used anywhere in the code
So remove it.
@@ -480,10 +480,7 @@ function teardown() {
run crictl images --quiet
echo "$output"
[ "$status" -eq 0 ]
- printf '%s\n' "$output" | while IFS= read -r id; do
- echo "$id"
- status=1
- done
+
cleanup_images
}
@@ -505,10 +502,7 @@ function teardown() {
echo "$output"
[ "$status" -eq 0 ]
[ "$output" = "" ]
- printf '%s\n' "$output" | while IFS= read -r id; do
- echo "$id"
- status=1
- done
+
cleanup_images
}
@@ -534,9 +528,6 @@ function teardown() {
echo "$output"
[ "$status" -eq 0 ]
[ "$output" = "" ]
- printf '%s\n' "$output" | while IFS= read -r id; do
- echo "$id"
- status=1
- done
+
cleanup_images
}
