* [PATCH v2] generic/499: filter fsx stderr output
@ 2018-07-10 12:52 Zorro Lang
2018-07-10 13:38 ` Lukas Czerner
0 siblings, 1 reply; 2+ messages in thread
From: Zorro Lang @ 2018-07-10 12:52 UTC (permalink / raw)
To: fstests
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>
---
Hi,
V1 as below (thanks Lukas):
https://marc.info/?l=fstests&m=153122545923371&w=2
V2 use "2>&1" to instead of "-I".
Thanks,
Zorro
tests/generic/499 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/generic/499 b/tests/generic/499
index 99d6d308..773eab2e 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
--
2.14.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] generic/499: filter fsx stderr output
2018-07-10 12:52 [PATCH v2] generic/499: filter fsx stderr output Zorro Lang
@ 2018-07-10 13:38 ` Lukas Czerner
0 siblings, 0 replies; 2+ messages in thread
From: Lukas Czerner @ 2018-07-10 13:38 UTC (permalink / raw)
To: Zorro Lang; +Cc: fstests
On Tue, Jul 10, 2018 at 08:52:43PM +0800, Zorro Lang wrote:
> 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.
Looks good, thanks.
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
>
> Signed-off-by: Zorro Lang <zlang@redhat.com>
> ---
>
> Hi,
>
> V1 as below (thanks Lukas):
> https://marc.info/?l=fstests&m=153122545923371&w=2
>
> V2 use "2>&1" to instead of "-I".
>
> Thanks,
> Zorro
>
> tests/generic/499 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/generic/499 b/tests/generic/499
> index 99d6d308..773eab2e 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
> --
> 2.14.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-10 13:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-10 12:52 [PATCH v2] generic/499: filter fsx stderr output Zorro Lang
2018-07-10 13:38 ` Lukas Czerner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox