summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-24 13:28:29 -0400
committerGitHub <noreply@github.com>2022-05-24 13:28:29 -0400
commitc6152f40a0d083a894b03ea18f1fabd1b4b68852 (patch)
tree0b1c8300aa2ea9479c3dab2177c818f69bcb9e43 /test
parent6240783f85ee74c8affac4b36a0db7c272b617de (diff)
parent2133edb2ca18820585f260db287bd40a57e7b4a2 (diff)
downloadpodman-c6152f40a0d083a894b03ea18f1fabd1b4b68852.tar.gz
podman-c6152f40a0d083a894b03ea18f1fabd1b4b68852.tar.bz2
podman-c6152f40a0d083a894b03ea18f1fabd1b4b68852.zip
Merge pull request #14319 from flouthoc/suppress-aux-on-quiet
compat, build: suppress `step` errors when `quiet=1` is set
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/10-images.at12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at
index fd04e3f1b..13aaea317 100644
--- a/test/apiv2/10-images.at
+++ b/test/apiv2/10-images.at
@@ -225,6 +225,18 @@ t POST "images/load" ${TMPD}/test.tar 200 \
t GET libpod/images/quay.io/libpod/alpine:latest/exists 204
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
+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"
+fi
+
cleanBuildTest
# vim: filetype=sh