From 36eb45201f596c03802d015b0de9943521e28633 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 12 Nov 2008 12:53:54 +0100 Subject: avoid spurious test failure when df always fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tests/df/total-verify: Skip upon _df_ failure, not tee failure. Reported by Ondřej Vašík. Details in . --- tests/df/total-verify | 6 ++++-- 1 file 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 -- cgit v1.2.3-70-g09d2