From: Zorro Lang Date: Tue, 10 Jul 2018 12:52:43 +0000 (+0800) Subject: generic/499: filter fsx stderr output X-Git-Tag: v2022.05.01~1459 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1b5cd501190ecda3a119e2d259d9934afc8e6ad2;p=users%2Fhch%2Fxfstests-dev.git generic/499: filter fsx stderr output On some old kernel which supports COLLAPSE_RANGE and ZERO_RANGE, but doesn't support INSERT_RANGE, this case alway fails as: QA output created by 499 +main: filesystem does not support fallocate mode FALLOC_FL_INSERT_RANGE, disabling! Silence is golden fsx print one more line to break the golden image. To fix this issue, redirect both fsx stdout and stderr to a file, then check the return value. Signed-off-by: Zorro Lang Reviewed-by: Lukas Czerner Signed-off-by: Eryu Guan --- diff --git a/tests/generic/499 b/tests/generic/499 index 99d6d3086..773eab2e2 100755 --- a/tests/generic/499 +++ b/tests/generic/499 @@ -50,7 +50,7 @@ ENDL victim=$SCRATCH_MNT/a touch $victim -$here/ltp/fsx --replay-ops $tmp.fsxops $victim > $tmp.output || cat $tmp.output +$here/ltp/fsx --replay-ops $tmp.fsxops $victim > $tmp.output 2>&1 || cat $tmp.output echo "Silence is golden" status=0