]> arthur.barton.de Git - bup.git/commitdiff
test-duplicity-import: don't quote wc -l output
authorRob Browning <rlb@defaultvalue.org>
Sat, 24 Aug 2019 20:22:04 +0000 (15:22 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 24 Aug 2019 21:05:14 +0000 (16:05 -0500)
Same story, second verse...

On at least some bsdish systems wc -l produces leading spaces in the
output.  cf. 2c2c28e4a3d21f0c5497f69cac2dd45b929f2e69

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

index 42e5b8352b1c06ebb77bcd34accea1da29912ab9..74aabc69e7234fdc894f8e45e3dfc6b4a5cdea02 100755 (executable)
@@ -30,7 +30,7 @@ WVPASS bup tick
 WVPASS touch src/new-file
 WVPASS dup src file://duplicity
 WVPASS bup import-duplicity "file://duplicity" import-duplicity
-WVPASSEQ "$(bup ls import-duplicity/ | wc -l)" "3"
+WVPASSEQ $(bup ls import-duplicity/ | wc -l) 3
 WVPASSEQ "$(bup ls import-duplicity/latest/ | sort)" "$(ls src | sort)"
 WVPASS bup restore -C restore/ import-duplicity/latest/
 WVFAIL "$top/t/compare-trees" src/ restore/ > tmp-compare-trees