From: Jim Meyering Date: Sat, 25 Oct 2008 14:30:54 +0000 (+0200) Subject: tests: df/total: don't fail for an inaccessible mount point X-Git-Tag: v7.1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=407e8f0fdd74b04a266dafa01ca896779f7706a1;p=thirdparty%2Fcoreutils.git tests: df/total: don't fail for an inaccessible mount point * tests/df/total: Ignore nonzero exit status from df. --- diff --git a/tests/df/total b/tests/df/total index 6d82663865..66769dc582 100755 --- a/tests/df/total +++ b/tests/df/total @@ -30,11 +30,8 @@ umask 22 RE_TOTAL='^total( +(-?[0-9]+|-)){3} +-?[0-9]+%$' -df > tmp || fail=1 -$EGREP "$RE_TOTAL" tmp && fail=1 - -df -i > tmp || fail=1 -$EGREP "$RE_TOTAL" tmp && fail=1 +df | $EGREP "$RE_TOTAL" && fail=1 +df -i | $EGREP "$RE_TOTAL" && fail=1 df --total | $EGREP "$RE_TOTAL" || fail=1 df -i --total | $EGREP "$RE_TOTAL" || fail=1