summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-10-25 16:30:54 +0200
committerJim Meyering <meyering@redhat.com>2008-10-25 16:30:54 +0200
commit407e8f0fdd74b04a266dafa01ca896779f7706a1 (patch)
tree11b8225d7969fdb5a66a6e20f73c174b5e80f1ec
parent461231f022bdb3ee392622d31dc475034adceeb2 (diff)
downloadcoreutils-407e8f0fdd74b04a266dafa01ca896779f7706a1.tar.xz
tests: df/total: don't fail for an inaccessible mount point
* tests/df/total: Ignore nonzero exit status from df.
-rwxr-xr-xtests/df/total7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/df/total b/tests/df/total
index 6d8266386..66769dc58 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