projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
461231f
)
tests: df/total: don't fail for an inaccessible mount point
author
Jim Meyering
<meyering@redhat.com>
Sat, 25 Oct 2008 14:30:54 +0000
(16:30 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Sat, 25 Oct 2008 14:30:54 +0000
(16:30 +0200)
* tests/df/total: Ignore nonzero exit status from df.
tests/df/total
patch
|
blob
|
history
diff --git
a/tests/df/total
b/tests/df/total
index
6d82663
..
66769dc
100755
(executable)
--- 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