mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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 <zlang@redhat.com> Reviewed-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user