diff --git a/test/system/065-cp.bats b/test/system/065-cp.bats index 315f0e30b..89e5159d8 100644 --- a/test/system/065-cp.bats +++ b/test/system/065-cp.bats @@ -71,6 +71,7 @@ load helpers is "$output" 'Error: "/IdoNotExist/" could not be found on container cpcontainer: No such file or directory' \ "copy into nonexistent path in container" + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer # CREATED container @@ -96,6 +97,7 @@ load helpers run_podman cp $srcdir/file cpcontainer:/tmp run_podman exec cpcontainer cat /tmp/file is "$output" "${content}" "cp to container's tmpfs" + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer # CREATED container (with copy up) @@ -149,6 +151,7 @@ load helpers is "$output" "${randomcontent[$id]}" "$description (cp ctr:$src to \$srcdir$dest)" rm $srcdir/$dest_fullname done < <(parse_table "$tests") + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer # Created container @@ -215,6 +218,7 @@ load helpers run_podman exec cpcontainer cat $dest_fullname/hostfile1 is "$output" "${randomcontent[1]}" "$description (cp -> ctr:$dest)" done < <(parse_table "$tests") + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer # CREATED container @@ -281,6 +285,7 @@ load helpers is "${lines[1]}" "${randomcontent[1]}" "$description" rm -rf $destdir/* done < <(parse_table "$tests") + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer # CREATED container @@ -511,6 +516,7 @@ load helpers run_podman exec cpcontainer cat /tmp/d3/x is "$output" "$rand_content3" "cp creates file named x" + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer } @@ -548,6 +554,7 @@ load helpers run_podman exec cpcontainer cat $graphroot/$rand_filename is "$output" "$rand_content" "Contents of file copied into container" + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer } @@ -596,6 +603,7 @@ load helpers run_podman 125 cp - cpcontainer:/tmp/IdoNotExist < $tar_file is "$output" 'Error: destination must be a directory when copying from stdin' + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer } @@ -646,6 +654,7 @@ load helpers run cat $srcdir/tmp/empty.txt is "$output" "" + run_podman stop -t 0 cpcontainer run_podman rm -f cpcontainer }