From eb678c70f95b76c4a5f1e286a7fe4d863180710a Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 10 May 2012 18:53:33 -0400 Subject: [PATCH] added cd back in, since many times the test script wants to access local files, etc. --- scripts/shunit/example_shunit_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() { -- 2.34.1