summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2019-06-19 19:27:45 +1000
committerDamien Zammit <damien@zamaudio.com>2019-06-19 19:27:45 +1000
commit45feb260c3f933474f291528f2152e854338647d (patch)
tree3dcfd900078957e566f5da37880ee29a01922442
parent94972e163c6571acbb76b9dc78ba207b61280da0 (diff)
Fix previous commit
-rw-r--r--tests.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests.sh b/tests.sh
index 27d9d56..1876fd2 100644
--- a/tests.sh
+++ b/tests.sh
@@ -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