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.
This commit is contained in:
Chad Whitacre
2013-09-25 19:54:42 -04:00
parent e02996f6e0
commit b89f438108

View File

@@ -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