X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fshunit%2Fexample_shunit_test.sh;h=17b3dd89509b1b45424654a679748e7aa58abc10;hb=refs%2Fheads%2Frelease-2.140.95;hp=e33b9c3881f954f41cf42d6bf86abf165d9cac13;hpb=4db21103d93decfe3d1d9723f687566a32d7ec63;p=feisty_meow.git diff --git a/scripts/shunit/example_shunit_test.sh b/scripts/shunit/example_shunit_test.sh old mode 100755 new mode 100644 index e33b9c38..17b3dd89 --- a/scripts/shunit/example_shunit_test.sh +++ b/scripts/shunit/example_shunit_test.sh @@ -3,8 +3,9 @@ # An example of using shunit2. # # Author: Chris Koeritz +# license gnu gpl v3 -export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. +export WORKDIR="$( \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. @@ -35,5 +36,5 @@ oneTimeTearDown() } # load and run shUnit2 -source $SHUNIT_DIR/shunit2 +source $SHUNIT_PATH/shunit2