mirror of
https://github.com/containers/podman.git
synced 2025-10-25 10:16:43 +08:00
Merge pull request #8810 from hshiina/logfile
Fix podman build --logfile
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user