]> arthur.barton.de Git - bup.git/commitdiff
test.sh: remove "wc -l" quoting until/unless we fix the broader issue.
authorRob Browning <rlb@defaultvalue.org>
Mon, 4 Nov 2013 15:34:17 +0000 (09:34 -0600)
committerRob Browning <rlb@defaultvalue.org>
Mon, 4 Nov 2013 15:40:16 +0000 (09:40 -0600)
On some platforms "wc -l" returns whitespace along with the count,
which breaks the one case where we quoted the result, i.e. "$(... | wc
-l").  For now, remove the quoting until/unless we decide to fix all
of the affected invocations.

Thanks to Thomas Klausner <tk@giga.or.at> for reporting the problem on
NetBSD.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test.sh

index 7f7a2e066c102d5a4faffbae0863bae821f37994..8cadb083527f937b573b7d0263a4e318d00b241c 100755 (executable)
--- a/t/test.sh
+++ b/t/test.sh
@@ -620,7 +620,7 @@ if [ "$(which rdiff-backup)" != "" ]; then
     WVPASS bup tick
     WVPASS rdiff-backup $TOP/Documentation $D/rdiff-backup
     WVPASS bup import-rdiff-backup $D/rdiff-backup import-rdiff-backup
-    WVPASSEQ "$(bup ls import-rdiff-backup/ | wc -l)" "3"
+    WVPASSEQ $(bup ls import-rdiff-backup/ | wc -l) 3
     WVPASSEQ "$(bup ls import-rdiff-backup/latest/ | sort)" "$(ls $TOP/Documentation | sort)"
 fi