From: Avery Pennarun Date: Wed, 10 Nov 2010 16:54:22 +0000 (-0800) Subject: Fix 'make test' on MacOS ("wc -l" returns extra whitespace). X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fc8d7d49e1c14da50e61d27c63e8ee7aa251e6d2;p=packages%2Fb%2Fbup.git Fix 'make test' on MacOS ("wc -l" returns extra whitespace). By removing the comparison value from quotes, we tell the shell to ignore whitespace. Reported by Jimmy Tang. Signed-off-by: Avery Pennarun --- diff --git a/t/test.sh b/t/test.sh index 4011cd9..a69addf 100755 --- a/t/test.sh +++ b/t/test.sh @@ -126,10 +126,10 @@ echo b >b.tmp WVPASS bup split -b a.tmp >taga.tmp WVPASS bup split -b b.tmp >tagb.tmp cat a.tmp b.tmp | WVPASS bup split -b >tagab.tmp -WVPASSEQ "$(cat taga.tmp | wc -l)" 1 -WVPASSEQ "$(cat tagb.tmp | wc -l)" 1 -WVPASSEQ "$(cat tagab.tmp | wc -l)" 1 -WVPASSEQ "$(cat tag[ab].tmp | wc -l)" 2 +WVPASSEQ $(cat taga.tmp | wc -l) 1 +WVPASSEQ $(cat tagb.tmp | wc -l) 1 +WVPASSEQ $(cat tagab.tmp | wc -l) 1 +WVPASSEQ $(cat tag[ab].tmp | wc -l) 2 WVPASSEQ "$(bup split -b a.tmp b.tmp)" "$(cat tagab.tmp)" WVPASSEQ "$(bup split -b --keep-boundaries a.tmp b.tmp)" "$(cat tag[ab].tmp)" WVPASSEQ "$(cat tag[ab].tmp | bup split -b --keep-boundaries --git-ids)" \