From 51bd5832b391f4c128cc42a3a5970733775f1ba7 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Sun, 29 May 2011 20:31:43 -0400 Subject: [PATCH] t/test.sh: 'ls' on NetBSD sets -A by default as root; work around it. We have to undo it by grepping out any dotfiles. (Normal OSes don't auto-set -A, but this is harmless there.) Reported by Thomas Klausner. Fix suggested by Gabriel Filion. Signed-off-by: Avery Pennarun --- t/test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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