From d61887037df6b7a4449b49145cdfd7941ab2d874 Mon Sep 17 00:00:00 2001 From: Hironori Shiina Date: Tue, 22 Dec 2020 21:48:07 -0500 Subject: Fix podman build --logfile A opened file object of a logfile gets lost because the variable `logfile` is redefined in a `if` block. This fix stops redefining the variable. Signed-off-by: Hironori Shiina --- test/system/070-build.bats | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/system') diff --git a/test/system/070-build.bats b/test/system/070-build.bats index 8e9a2d613..048cf535d 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -424,6 +424,23 @@ EOF run_podman rmi -a --force } +@test "podman build --logfile test" { + tmpdir=$PODMAN_TMPDIR/build-test + mkdir -p $tmpdir + tmpbuilddir=$tmpdir/build + mkdir -p $tmpbuilddir + dockerfile=$tmpbuilddir/Dockerfile + cat >$dockerfile <