1 2 3 4 5 6 7 8 9
#!/usr/bin/bash while true do cargo test $1 if [[ x$? != x0 ]] ; then exit $? fi done