mirror of
https://github.com/containers/podman.git
synced 2025-06-23 10:38:20 +08:00
Merge pull request #15605 from TomSweeneyRedHat/dev/tsweeney/adjusttest
Update test per comment in #15555
This commit is contained in:
@ -227,14 +227,15 @@ t GET libpod/images/quay.io/libpod/busybox:latest/exists 204
|
||||
|
||||
CONTAINERFILE_WITH_ERR_TAR="${TMPD}/containerfile.tar"
|
||||
cat > $TMPD/containerfile << EOF
|
||||
FROM quay.io/fedora/fedora
|
||||
FROM $IMAGE
|
||||
RUN echo 'some error' >&2
|
||||
EOF
|
||||
tar --format=posix -C $TMPD -cvf ${CONTAINERFILE_WITH_ERR_TAR} containerfile &> /dev/null
|
||||
t POST "build?q=1&dockerfile=containerfile" $CONTAINERFILE_WITH_ERR_TAR 200
|
||||
response_output=$(cat "$WORKDIR/curl.result.out")
|
||||
if [[ ${response_output} == *"some error"* ]];then
|
||||
_show_ok 0 "compat quiet build" "~ $response_output" "found output from stderr in API"
|
||||
t POST "/build?q=1&dockerfile=containerfile" $CONTAINERFILE_WITH_ERR_TAR 200
|
||||
if [[ $output == *"some error"* ]];then
|
||||
_show_ok 0 "compat quiet build" "[should not contain 'some error']" "$output"
|
||||
else
|
||||
_show_ok 1 "compat quiet build"
|
||||
fi
|
||||
|
||||
cleanBuildTest
|
||||
|
Reference in New Issue
Block a user