diff options
author | Jim Meyering <meyering@redhat.com> | 2008-11-12 12:53:54 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-11-12 12:53:54 +0100 |
commit | 36eb45201f596c03802d015b0de9943521e28633 (patch) | |
tree | 1d3d54b0b2f48500b1c8ed583ce5b797b29494c4 /tests/df | |
parent | b43255473fe001c0c8d0f6cef493eb9823ca9622 (diff) | |
download | coreutils-36eb45201f596c03802d015b0de9943521e28633.tar.xz |
avoid spurious test failure when df always fails
* tests/df/total-verify: Skip upon _df_ failure, not tee failure.
Reported by Ondřej Vašík. Details in
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15028>.
Diffstat (limited to 'tests/df')
-rwxr-xr-x | tests/df/total-verify | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/df/total-verify b/tests/df/total-verify index 5b5856586..e5cfaf3be 100755 --- a/tests/df/total-verify +++ b/tests/df/total-verify @@ -54,8 +54,10 @@ EOF # Use --block-size=512 to keep df from printing rounded-to-kilobyte # numbers which wouldn't necessarily add up to the displayed total. -df --total -P --block-size=512 |tee space || framework_failure -df --total -i -P |tee inode || framework_failure +df --total -P --block-size=512 > space || framework_failure +cat space # this helps when debugging any test failure +df --total -i -P > inode || framework_failure +cat inode fail=0 $PERL -f check-df space || fail=1 |