diff options
author | Fam Zheng <famz@redhat.com> | 2016-07-19 21:20:42 +0800 |
---|---|---|
committer | Fam Zheng <famz@redhat.com> | 2016-07-20 19:19:43 +0800 |
commit | 1ad76b8af8b7e187cb34a685755ba60ce0ce1c40 (patch) | |
tree | 2e78f4f67dcbb144c04724db13905a5480a80e1c /tests/docker | |
parent | c81585130e7480a8ad9fcdbc3ff712c48260cf43 (diff) | |
download | qemu-1ad76b8af8b7e187cb34a685755ba60ce0ce1c40.zip qemu-1ad76b8af8b7e187cb34a685755ba60ce0ce1c40.tar.gz qemu-1ad76b8af8b7e187cb34a685755ba60ce0ce1c40.tar.bz2 |
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
Diffstat (limited to 'tests/docker')
-rwxr-xr-x | tests/docker/run | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/docker/run b/tests/docker/run index ddfac05..d85d49a 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 |