Commit 426d2d1c096f0a545140e0f8db074b345da87f71
1 parent
f768975a
Exists in
master
and in
90 other branches
Fixed shunit2 path
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
test/test_helper.sh
@@ -8,12 +8,10 @@ run_on() { | @@ -8,12 +8,10 @@ run_on() { | ||
8 | } | 8 | } |
9 | 9 | ||
10 | load_shunit2() { | 10 | load_shunit2() { |
11 | - if [ `which shunit2 > /dev/null 2>&1` ]; then | ||
12 | - . shunit2 | ||
13 | - elif [ -e /usr/share/shunit2/shunit2 ]; then | 11 | + if [ -e /usr/share/shunit2/shunit2 ]; then |
14 | . /usr/share/shunit2/shunit2 | 12 | . /usr/share/shunit2/shunit2 |
15 | else | 13 | else |
16 | - echo "Could not find shunit2, please, make sure you have it installed." | 14 | + . shunit2 |
17 | fi | 15 | fi |
18 | } | 16 | } |
19 | 17 |