diff options
author | Damien Zammit <damien@zamaudio.com> | 2019-06-19 19:27:45 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2019-06-19 19:27:45 +1000 |
commit | 45feb260c3f933474f291528f2152e854338647d (patch) | |
tree | 3dcfd900078957e566f5da37880ee29a01922442 | |
parent | 94972e163c6571acbb76b9dc78ba207b61280da0 (diff) |
Fix previous commit
-rw-r--r-- | tests.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,22 +1,22 @@ #!/do/not/execute -DIFF=/usr/bin/diff -GREP=/usr/bin/grep +DIFF=$(which diff) +GREP=$(which grep) PTFTOOL=../../ptftool run_test() { echo "$NAME" - if [ ! -e $FILE ]; then + if [ "x$FILE" != "x" ] && [ ! -e $FILE ]; then echo "Cannot find test file" echo "" exit 1 fi - if [ ! -e $DIFF ]; then + if [ "x$DIFF" != "x" ] && [ ! -e $DIFF ]; then echo "Cannot find diff" echo "" exit 1 fi - if [ ! -e $GREP ]; then + if [ "x$GREP" != "x" ] && [ ! -e $GREP ]; then echo "Cannot find grep" echo "" exit 1 |