diff --git a/t/test.sh b/t/test.sh index b55316797..6058e44c5 100755 --- a/t/test.sh +++ b/t/test.sh @@ -446,7 +446,11 @@ mkdir $D WVPASS bup init WVPASS bup index $TOP/Documentation WVPASS bup save -n compression -0 --strip $TOP/Documentation -WVPASSEQ "$(bup ls compression/latest/ | sort)" "$(ls $TOP/Documentation | sort)" +# 'ls' on NetBSD sets -A by default when running as root, so we have to undo +# it by grepping out any dotfiles. (Normal OSes don't auto-set -A, but this +# is harmless there.) +WVPASSEQ "$(bup ls compression/latest/ | sort)" \ + "$(ls $TOP/Documentation | grep -v '^\.' | sort)" COMPRESSION_0_SIZE=$(du -s $D | cut -f1) D=compression9.tmp