Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 <apenwarr@gmail.com>
  • Loading branch information
apenwarr committed May 30, 2011
1 parent bf6e0c4 commit 51bd583
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/test.sh
Expand Up @@ -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
Expand Down

0 comments on commit 51bd583

Please sign in to comment.