Added compatability for installations of shUnit2 existing outside of the local directory.

This commit is contained in:
sk4ly 2013-10-23 23:05:34 -08:00
parent f7b5027ba5
commit 455e0daeed

10
test.sh Normal file → Executable file
View File

@ -570,4 +570,12 @@ test_listing_multiple_jargroups() {
# Perform tests # Perform tests
source shunit2 # 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