From 732cec794eadf45ffe57a0305571e5779dcefa4c Mon Sep 17 00:00:00 2001 From: Aleksei Kosyrev Date: Sat, 7 Oct 2023 10:55:51 +0300 Subject: [PATCH] Add system test Signed-off-by: Aleksei Kosyrev --- test/system/070-build.bats | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/system/070-build.bats b/test/system/070-build.bats index 56da8ef32d..c85f42818e 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -668,6 +668,25 @@ EOF run_podman rmi -f build_test } +# Regression test for #20259 +@test "podman build with ignore '*' and containerfile outside of build context" { + local tmpdir=$PODMAN_TMPDIR/build-test-$(random_string 10) + mkdir -p $tmpdir + mkdir -p $tmpdir/context + + cat >$tmpdir/Containerfile <$tmpdir/context/.containerignore <