From b89f43810803b703bfe9e83b9c83dff389f02030 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Wed, 25 Sep 2013 19:54:42 -0400 Subject: [PATCH] Don't care where test.sh is run from We were trying to run ./test/test.sh and it didn't work because test.sh assumed we were in ./test/. This change moves into ./test/ for us. --- test/test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test.sh b/test/test.sh index ff7d1c9..a633ebd 100755 --- a/test/test.sh +++ b/test/test.sh @@ -4,9 +4,12 @@ function msg() { echo $(date +%T) "$@" } +# Move to a predictable place. +cd $(dirname $0) + failures=0 total=0 -mydir=$(cd $(dirname $0); pwd) +mydir=$(pwd) files=$(echo *.txt) for dir in ../[0-9][0-9]-* ; do cd $dir