set the bash pipefail option in the test script to return the error
[monkeysphere.git] / tests / basic
index fd1bfb0549be6b4240e87e10fb659d56613a1569..d86388665492ba6e3336df8a8a2b4a478ef05a70 100755 (executable)
 
 # all subcommands in this script should complete without failure:
 set -e
+set -o pipefail
 
 ## make sure that the right tools are installed to run the test.  the
 ## test has *more* requirements than plain ol' monkeysphere:
 
-[ -x $(which socat) ] || { echo "You must have socat installed to run this test." && exit 1; }
+which socat || { echo "You must have socat installed to run this test." ; exit 1; }
 
 ## FIXME: other checks?