]> arthur.barton.de Git - bup.git/commitdiff
Fix 'make test' on MacOS ("wc -l" returns extra whitespace).
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 10 Nov 2010 16:54:22 +0000 (08:54 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 10 Nov 2010 16:59:15 +0000 (08:59 -0800)
By removing the comparison value from quotes, we tell the shell to ignore
whitespace.

Reported by Jimmy Tang.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
t/test.sh

index 4011cd947a504f06d7a5cdfa81c4afa273fc094b..a69addfbd92a64fcb87f62845ed652b6b7404474 100755 (executable)
--- 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)" \