From fc8d7d49e1c14da50e61d27c63e8ee7aa251e6d2 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Wed, 10 Nov 2010 08:54:22 -0800 Subject: [PATCH] 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 --- t/test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)" \ -- 2.39.2