Commits

dizzyd committed 3d0f957

Fix bug 728; use case statement to look for success or failure

Comments (0)

Files changed (1)

         NODE_NAME=${NAME_ARG#* }
 
         $ERTS_PATH/erl -noshell $NAME_PARAM riak_test$NAME_HOST $COOKIE_ARG \
-                       -eval "riak:client_test(\"$NODE_NAME\")" -s init stop
+                       -eval "case catch(riak:client_test(\"$NODE_NAME\")) of \
+                               ok -> init:stop();                             \
+                               _  -> init:stop(1)                             \
+                              end."
 
         ;;
     *)