Skip to content

Commit

Permalink
Merge pull request #218 from sk4ly/master
Browse files Browse the repository at this point in the history
Compatability for shUnit2 installs outside of the local directory.
  • Loading branch information
zachlatta committed Oct 24, 2013
2 parents f7b5027 + 455e0da commit a837d50
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -570,4 +570,12 @@ test_listing_multiple_jargroups() {


# 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

0 comments on commit a837d50

Please sign in to comment.