summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-23 04:47:54 -0500
committerGitHub <noreply@github.com>2020-12-23 04:47:54 -0500
commit06a6fd9f224adb8510e42691c261716ea2896ade (patch)
tree5a698612cbac29d6858b7815f181796872572e59 /test
parentb41fa90a4c86df7fc8f14e814925dc5a330ddcf5 (diff)
parentd61887037df6b7a4449b49145cdfd7941ab2d874 (diff)
downloadpodman-06a6fd9f224adb8510e42691c261716ea2896ade.tar.gz
podman-06a6fd9f224adb8510e42691c261716ea2896ade.tar.bz2
podman-06a6fd9f224adb8510e42691c261716ea2896ade.zip
Merge pull request #8810 from hshiina/logfile
Fix podman build --logfile
Diffstat (limited to 'test')
-rw-r--r--test/system/070-build.bats17
1 files changed, 17 insertions, 0 deletions
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 <<EOF
+FROM $IMAGE
+EOF
+
+ run_podman build -t build_test --format=docker --logfile=$tmpdir/logfile $tmpbuilddir
+ run cat $tmpdir/logfile
+ is "$output" ".*STEP 2: COMMIT" "COMMIT seen in log"
+
+ run_podman rmi -f build_test
+}
+
function teardown() {
# A timeout or other error in 'build' can leave behind stale images
# that podman can't even see and which will cascade into subsequent