--squash --layers=false should be allowed

This is the same as what --squash-all is doing, and we already support
--squash with --layers=true since this is the default.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2024-06-10 11:38:11 -04:00
parent e231bf0a46
commit ad8fc6a74b
3 changed files with 9 additions and 5 deletions

View File

@@ -1110,6 +1110,12 @@ EOF
run_podman build -t build_test $tmpdir/link
}
@test "podman build --squash --squash-all should conflict" {
echo FROM scratch > $PODMAN_TMPDIR/Dockerfile
run_podman 125 build -t build_test --squash-all --squash $PODMAN_TMPDIR
is "$output" "Error: cannot specify --squash-all with --squash" "--squash and --sqaush-all should conflict"
}
@test "podman build --volumes-from conflict" {
rand_content=$(random_string 50)