aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-07-19 21:20:42 +0800
committerFam Zheng <famz@redhat.com>2016-07-20 19:19:43 +0800
commit1ad76b8af8b7e187cb34a685755ba60ce0ce1c40 (patch)
tree2e78f4f67dcbb144c04724db13905a5480a80e1c
parentc81585130e7480a8ad9fcdbc3ff712c48260cf43 (diff)
docker: Fix exit code if $CMD failed
Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1468934445-32183-8-git-send-email-famz@redhat.com
-rwxr-xr-xtests/docker/run4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/docker/run b/tests/docker/run
index ddfac05bd4..d85d49afc1 100755
--- a/tests/docker/run
+++ b/tests/docker/run
@@ -11,6 +11,8 @@
# or (at your option) any later version. See the COPYING file in
# the top-level directory.
+set -e
+
if test -n "$V"; then
set -x
fi
@@ -61,4 +63,6 @@ elif test -n "$DEBUG"; then
echo
# Force error after shell exits
$SHELL && exit 1
+else
+ exit 1
fi