From 2dbf0c220fc971c9493392a70c71954001fee7fd Mon Sep 17 00:00:00 2001 From: Claudio Bandera Date: Sun, 30 Aug 2015 23:04:16 +0200 Subject: Fixed unittests for Ubuntu --- test-branches.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test-branches.sh') diff --git a/test-branches.sh b/test-branches.sh index c886e82..b972a25 100755 --- a/test-branches.sh +++ b/test-branches.sh @@ -1,3 +1,4 @@ +#!/bin/bash scriptDir="$(cd "$(dirname "$0")"; pwd)" source "$scriptDir/radar-base.sh" @@ -94,7 +95,7 @@ test_remote_branch_name_quiet_when_not_in_repo() { echo "$debug_output" - assertEquals " 0" "$usages" + assertEquals "0" "$usages" rm_tmp } -- cgit v1.2.3 From e692cbc483f8ee4b4666143fe1b3cfbd86e7681f Mon Sep 17 00:00:00 2001 From: Claudio Bandera Date: Thu, 17 Sep 2015 20:35:34 +0200 Subject: Added switch case for OS type in tests --- test-branches.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test-branches.sh') 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 } -- cgit v1.2.3