projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af5f3c3
)
added cd back in, since many times the test script wants to access local files, etc.
author
Chris Koeritz
<fred@gruntose.com>
Thu, 10 May 2012 22:53:33 +0000
(18:53 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Thu, 10 May 2012 22:53:33 +0000
(18:53 -0400)
scripts/shunit/example_shunit_test.sh
patch
|
blob
|
history
diff --git
a/scripts/shunit/example_shunit_test.sh
b/scripts/shunit/example_shunit_test.sh
index c3dc8de5cb6abd72f9883b6becd840e1f42ed30f..cc6c1bb3d2cdf6bfd7dbf645738398c7fc165653 100755
(executable)
--- 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()
{