diff options
author | Claudio Bandera <claudio.bandera@kit.edu> | 2015-09-17 20:35:34 +0200 |
---|---|---|
committer | Claudio Bandera <claudio.bandera@kit.edu> | 2015-09-17 20:35:34 +0200 |
commit | e692cbc483f8ee4b4666143fe1b3cfbd86e7681f (patch) | |
tree | 7a34df331cf3495d585ab94080a953b66e823efe /test-branches.sh | |
parent | 92c2e869763dcc25c840c2e6cfcd9863abf201dd (diff) | |
download | git-sonar-e692cbc483f8ee4b4666143fe1b3cfbd86e7681f.tar.gz git-sonar-e692cbc483f8ee4b4666143fe1b3cfbd86e7681f.zip |
Added switch case for OS type in tests
Diffstat (limited to 'test-branches.sh')
-rwxr-xr-x | test-branches.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test-branches.sh b/test-branches.sh index b3f0ac2..891a819 100755 --- a/test-branches.sh +++ b/test-branches.sh @@ -97,8 +97,13 @@ test_remote_branch_name_quiet_when_not_in_repo() { echo "$debug_output" - assertEquals "0" "$usages" - + if [[ $OSTYPE == darwin* ]];then + expected=" 0" + else + expected="0" + fi; + assertEquals "$expected" "$usages" + rm_tmp } |