show absolute path to user when aborting

This commit is contained in:
rw
2014-06-20 16:51:32 -07:00
parent 69dc8cbbc3
commit 0b60ece438

View File

@@ -18,11 +18,12 @@ LICENSE
echo
echo Compile then run the Java test.
testdir=$(dirname $0)
testdir=$(readlink -fn `dirname $0`)
thisdir=$(readlink -fn `pwd`)
if [[ "$testdir" != "." ]]; then
echo error: must be run from inside the ./tests directory
echo you ran it from `pwd`
if [[ "$testdir" != "$thisdir" ]]; then
echo error: must be run from inside the ${testdir} directory
echo you ran it from ${thisdir}
exit 1
fi