]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
avoid spurious test failure when df always fails
authorJim Meyering <meyering@redhat.com>
Wed, 12 Nov 2008 11:53:54 +0000 (12:53 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 12 Nov 2008 11:53:54 +0000 (12:53 +0100)
* 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>.

tests/df/total-verify

index 5b585658654fcc09ddcd95a36dad3178e6f0d59d..e5cfaf3be7d974859ea050a5153abcadc8e8d92f 100755 (executable)
@@ -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