* [PATCH] generic/019: redirect fsstress output to log file instead
@ 2024-07-31 15:59 fdmanana
2024-07-31 16:20 ` David Sterba
2024-07-31 23:29 ` Qu Wenruo
0 siblings, 2 replies; 3+ messages in thread
From: fdmanana @ 2024-07-31 15:59 UTC (permalink / raw)
To: fstests; +Cc: linux-btrfs, Filipe Manana
From: Filipe Manana <fdmanana@suse.com>
Currently we are redirecting stdout and stderr of fsstress to /dev/null.
In case we have a test failure, it's useful to know the seed that
fsstress was using because it might be helpful to run it again with that
same seed in the hope of being able to reproduce the failure.
So redirect stdout/stderr to the log file $seqres.full instead, so
that we'll see a line like this after running the test:
seed = 1722389488
Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
tests/generic/019 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/generic/019 b/tests/generic/019
index 26108be4..fe117ac8 100755
--- a/tests/generic/019
+++ b/tests/generic/019
@@ -90,7 +90,7 @@ _workout()
echo "Start fsstress.."
echo ""
echo "fsstress $args" >> $seqres.full
- $FSSTRESS_PROG $args > /dev/null 2>&1 &
+ $FSSTRESS_PROG $args >> $seqres.full 2>&1 &
fs_pid=$!
echo "Start fio.."
cat $fio_config >> $seqres.full
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] generic/019: redirect fsstress output to log file instead
2024-07-31 15:59 [PATCH] generic/019: redirect fsstress output to log file instead fdmanana
@ 2024-07-31 16:20 ` David Sterba
2024-07-31 23:29 ` Qu Wenruo
1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2024-07-31 16:20 UTC (permalink / raw)
To: fdmanana; +Cc: fstests, linux-btrfs, Filipe Manana
On Wed, Jul 31, 2024 at 04:59:24PM +0100, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
>
> Currently we are redirecting stdout and stderr of fsstress to /dev/null.
> In case we have a test failure, it's useful to know the seed that
> fsstress was using because it might be helpful to run it again with that
> same seed in the hope of being able to reproduce the failure.
>
> So redirect stdout/stderr to the log file $seqres.full instead, so
> that we'll see a line like this after running the test:
>
> seed = 1722389488
>
> Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] generic/019: redirect fsstress output to log file instead
2024-07-31 15:59 [PATCH] generic/019: redirect fsstress output to log file instead fdmanana
2024-07-31 16:20 ` David Sterba
@ 2024-07-31 23:29 ` Qu Wenruo
1 sibling, 0 replies; 3+ messages in thread
From: Qu Wenruo @ 2024-07-31 23:29 UTC (permalink / raw)
To: fdmanana, fstests; +Cc: linux-btrfs, Filipe Manana
在 2024/8/1 01:29, fdmanana@kernel.org 写道:
> From: Filipe Manana <fdmanana@suse.com>
>
> Currently we are redirecting stdout and stderr of fsstress to /dev/null.
> In case we have a test failure, it's useful to know the seed that
> fsstress was using because it might be helpful to run it again with that
> same seed in the hope of being able to reproduce the failure.
>
> So redirect stdout/stderr to the log file $seqres.full instead, so
> that we'll see a line like this after running the test:
>
> seed = 1722389488
>
> Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Thanks,
Qu
> ---
> tests/generic/019 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/generic/019 b/tests/generic/019
> index 26108be4..fe117ac8 100755
> --- a/tests/generic/019
> +++ b/tests/generic/019
> @@ -90,7 +90,7 @@ _workout()
> echo "Start fsstress.."
> echo ""
> echo "fsstress $args" >> $seqres.full
> - $FSSTRESS_PROG $args > /dev/null 2>&1 &
> + $FSSTRESS_PROG $args >> $seqres.full 2>&1 &
> fs_pid=$!
> echo "Start fio.."
> cat $fio_config >> $seqres.full
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-31 23:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31 15:59 [PATCH] generic/019: redirect fsstress output to log file instead fdmanana
2024-07-31 16:20 ` David Sterba
2024-07-31 23:29 ` Qu Wenruo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox