X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fshunit%2Fexample_shunit_test.sh;h=8931aef130e2e904ef09bc3cf977ca511f849ac6;hb=4e15bc3b03c452086296b0b2e8dab709f34b5957;hp=ce84616c98f4a66c7ca1a8af52b95e67238ab936;hpb=1874b84e75a13d5959f4713734ff40dcc5d37581;p=feisty_meow.git diff --git a/scripts/shunit/example_shunit_test.sh b/scripts/shunit/example_shunit_test.sh index ce84616c..8931aef1 100644 --- a/scripts/shunit/example_shunit_test.sh +++ b/scripts/shunit/example_shunit_test.sh @@ -5,13 +5,13 @@ # Author: Chris Koeritz # license gnu gpl v3 -export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory. +export THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory. if [[ ! "$0" =~ ^/.* ]]; then # 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)" $* + exec "$THISDIR/$(basename $0)" $* fi -cd $WORKDIR +cd $THISDIR oneTimeSetUp() { @@ -36,5 +36,5 @@ oneTimeTearDown() } # load and run shUnit2 -source $SHUNIT_DIR/shunit2 +source $SHUNIT_PATH/shunit2