summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoberto Aloi <robert.aloi@klarna.com>2015-01-13 14:41:39 +0100
committerRoberto Aloi <robert.aloi@klarna.com>2015-01-23 08:31:58 +0100
commit0d5416218b24449c72d3a9e4e413c2274e139355 (patch)
tree2a5fb976202e681afbd3d138fc465492d60b4642 /test
parent78379493d43fec273a0c3ee6dab7d717469d4772 (diff)
downloadrebar-0d5416218b24449c72d3a9e4e413c2274e139355.tar.gz
Exit with proper status code if 'eval' fails
Diffstat (limited to 'test')
-rwxr-xr-xtest/upgrade_project/rel/files/dummy4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/upgrade_project/rel/files/dummy b/test/upgrade_project/rel/files/dummy
index 9ea6b3d..67fb2da 100755
--- a/test/upgrade_project/rel/files/dummy
+++ b/test/upgrade_project/rel/files/dummy
@@ -245,6 +245,10 @@ case "$1" in
shift
$NODETOOL eval "$1"
+ ES_EVAL=$?
+ if [ "$ES_EVAL" -ne 0 ]; then
+ exit $ES_EVAL
+ fi
;;
remote_console)