From 455e0daeeda86f1d4c2933ccc650b5dc420c00a9 Mon Sep 17 00:00:00 2001 From: sk4ly Date: Wed, 23 Oct 2013 23:05:34 -0800 Subject: [PATCH] Added compatability for installations of shUnit2 existing outside of the local directory. --- test.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 test.sh diff --git a/test.sh b/test.sh old mode 100644 new mode 100755 index 0b12894..0a5bf1a --- a/test.sh +++ b/test.sh @@ -570,4 +570,12 @@ test_listing_multiple_jargroups() { # Perform tests -source shunit2 \ No newline at end of file +# local copy of shunit2 +source shunit2 2>/dev/null +if [ $? -ne 0 ]; then + # default install location for shunit2 + source "/usr/share/shunit2/shunit2" 2>/dev/null + if [ $? -ne 0 ]; then + echo "Could not find shUnit2 install." + fi +fi