Merge "show absolute path to user when aborting" into ub-games-master

This commit is contained in:
Wouter van Oortmerssen 2014-06-23 23:13:09 +00:00 committed by Android (Google) Code Review
commit 5b4c39250f
1 changed files with 5 additions and 4 deletions

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