summaryrefslogtreecommitdiffstats
path: root/test-commits.sh
diff options
context:
space:
mode:
authorClaudio Bandera <claudio.bandera@kit.edu>2015-09-17 20:35:34 +0200
committerClaudio Bandera <claudio.bandera@kit.edu>2015-09-17 20:35:34 +0200
commite692cbc483f8ee4b4666143fe1b3cfbd86e7681f (patch)
tree7a34df331cf3495d585ab94080a953b66e823efe /test-commits.sh
parent92c2e869763dcc25c840c2e6cfcd9863abf201dd (diff)
downloadgit-sonar-e692cbc483f8ee4b4666143fe1b3cfbd86e7681f.tar.gz
git-sonar-e692cbc483f8ee4b4666143fe1b3cfbd86e7681f.zip
Added switch case for OS type in tests
Diffstat (limited to 'test-commits.sh')
-rwxr-xr-xtest-commits.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/test-commits.sh b/test-commits.sh
index 8eecffc..c97c56a 100755
--- a/test-commits.sh
+++ b/test-commits.sh
@@ -296,7 +296,12 @@ test_dont_call_remote_branch_name() {
usages="$(echo "$debug_output" | grep 'remote_branch_name' | wc -l )"
#wc -l has a weird output
- assertEquals "0" "$usages"
+ if [[ $OSTYPE == darwin* ]];then
+ expected=" 0"
+ else
+ expected="0"
+ fi;
+ assertEquals "$expected" "$usages"
rm_tmp
}
@@ -320,7 +325,12 @@ test_dont_remote_if_remote_is_master() {
usages="$(echo "$debug_output" | grep 'git rev-list' | wc -l )"
- assertEquals "0" "$usages"
+ if [[ $OSTYPE == darwin* ]];then
+ expected=" 0"
+ else
+ expected="0"
+ fi;
+ assertEquals "$expected" "$usages"
rm_tmp
}