Commits

dizzyd committed 3d0f957

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

  • Participants
  • Parent commits e9e13f1

Comments (0)

Files changed (1)

File rel/files/riak-admin

         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."
 
         ;;
     *)