From: Chris Koeritz Date: Thu, 10 May 2012 22:53:33 +0000 (-0400) Subject: added cd back in, since many times the test script wants to access local files, etc. X-Git-Tag: 2.140.90~1350 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=eb678c70f95b76c4a5f1e286a7fe4d863180710a;p=feisty_meow.git added cd back in, since many times the test script wants to access local files, etc. --- diff --git a/scripts/shunit/example_shunit_test.sh b/scripts/shunit/example_shunit_test.sh index c3dc8de5..cc6c1bb3 100755 --- a/scripts/shunit/example_shunit_test.sh +++ b/scripts/shunit/example_shunit_test.sh @@ -5,12 +5,12 @@ # Author: Chris Koeritz export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. -#cd $WORKDIR if [[ ! "$0" =~ ^/.* ]]; then - # re-run the script with the absolute path if it didn't start that way; otherwise + # re-run the script with an absolute path if it didn't start out that way; otherwise, # shunit is not happy with finding the script. exec "$WORKDIR/$(basename $0)" $* fi +cd $WORKDIR oneTimeSetUp() {