summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-04 14:24:00 +0200
committerGitHub <noreply@github.com>2022-09-04 14:24:00 +0200
commit7cc2543433d993144dadc3e12ca77c9e07b73809 (patch)
tree858f2be925bf2e6fa0d469cf98e88aa02e911c43 /test
parent8942a60bb012d2aa83f7d4ab1c05ec8e46df48a6 (diff)
parentc05b6e5d3b10f66c7a439419898c810d2d67740a (diff)
downloadpodman-7cc2543433d993144dadc3e12ca77c9e07b73809.tar.gz
podman-7cc2543433d993144dadc3e12ca77c9e07b73809.tar.bz2
podman-7cc2543433d993144dadc3e12ca77c9e07b73809.zip
Merge pull request #15605 from TomSweeneyRedHat/dev/tsweeney/adjusttest
Update test per comment in #15555
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/10-images.at11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at
index 86ee2a1f5..3ffc6f738 100644
--- a/test/apiv2/10-images.at
+++ b/test/apiv2/10-images.at
@@ -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