* [PATCH] check: wipe tmp.arglist
@ 2022-12-14 21:59 Leah Rumancik
2022-12-15 11:36 ` David Disseldorp
2022-12-15 16:10 ` Darrick J. Wong
0 siblings, 2 replies; 4+ messages in thread
From: Leah Rumancik @ 2022-12-14 21:59 UTC (permalink / raw)
To: fstests; +Cc: djwong, Leah Rumancik
Make sure tmp.arglist is wiped before each run to avoid
accidentally rerunning tests.
Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
---
check | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/check b/check
index d2e51296..81a30928 100755
--- a/check
+++ b/check
@@ -46,7 +46,7 @@ export DIFF_LENGTH=${DIFF_LENGTH:=10}
# by default don't output timestamps
timestamp=${TIMESTAMP:=false}
-rm -f $tmp.list $tmp.tmp $tmp.grep $here/$iam.out $tmp.xlist $tmp.report.*
+rm -f $tmp.list $tmp.tmp $tmp.grep $here/$iam.out $tmp.xlist $tmp.report.* $tmp.arglist
SRC_GROUPS="generic shared"
export SRC_DIR="tests"
--
2.39.0.314.g84b9a713c41-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] check: wipe tmp.arglist
2022-12-14 21:59 [PATCH] check: wipe tmp.arglist Leah Rumancik
@ 2022-12-15 11:36 ` David Disseldorp
2022-12-15 16:10 ` Darrick J. Wong
1 sibling, 0 replies; 4+ messages in thread
From: David Disseldorp @ 2022-12-15 11:36 UTC (permalink / raw)
To: Leah Rumancik; +Cc: fstests, djwong
Hi Leah,
On Wed, 14 Dec 2022 13:59:26 -0800, Leah Rumancik wrote:
> Make sure tmp.arglist is wiped before each run to avoid
> accidentally rerunning tests.
>
> Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
> ---
> check | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/check b/check
> index d2e51296..81a30928 100755
> --- a/check
> +++ b/check
> @@ -46,7 +46,7 @@ export DIFF_LENGTH=${DIFF_LENGTH:=10}
> # by default don't output timestamps
> timestamp=${TIMESTAMP:=false}
>
> -rm -f $tmp.list $tmp.tmp $tmp.grep $here/$iam.out $tmp.xlist $tmp.report.*
> +rm -f $tmp.list $tmp.tmp $tmp.grep $here/$iam.out $tmp.xlist $tmp.report.* $tmp.arglist
>
> SRC_GROUPS="generic shared"
> export SRC_DIR="tests"
I can't quite see how "accidental rerun" can happen, given that
_summary()/_wrapup() should remove any $tmp.arglist on completion,
and a PID collision for $tmp would also be needed. That said, it still
probably makes sense to be consistent with the other files here, so:
Reviewed-by: David Disseldorp <ddiss@suse.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] check: wipe tmp.arglist
2022-12-14 21:59 [PATCH] check: wipe tmp.arglist Leah Rumancik
2022-12-15 11:36 ` David Disseldorp
@ 2022-12-15 16:10 ` Darrick J. Wong
2022-12-19 19:03 ` Leah Rumancik
1 sibling, 1 reply; 4+ messages in thread
From: Darrick J. Wong @ 2022-12-15 16:10 UTC (permalink / raw)
To: Leah Rumancik; +Cc: fstests
On Wed, Dec 14, 2022 at 01:59:26PM -0800, Leah Rumancik wrote:
> Make sure tmp.arglist is wiped before each run to avoid
> accidentally rerunning tests.
>
> Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Makes sense to me, though it might help to put the exact sequence of
brokenness in the commit message since (like David) I wondered why the
_summary and _wrapup functions wouldn't zap $tmp.arglist.
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
--D
> ---
> check | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/check b/check
> index d2e51296..81a30928 100755
> --- a/check
> +++ b/check
> @@ -46,7 +46,7 @@ export DIFF_LENGTH=${DIFF_LENGTH:=10}
> # by default don't output timestamps
> timestamp=${TIMESTAMP:=false}
>
> -rm -f $tmp.list $tmp.tmp $tmp.grep $here/$iam.out $tmp.xlist $tmp.report.*
> +rm -f $tmp.list $tmp.tmp $tmp.grep $here/$iam.out $tmp.xlist $tmp.report.* $tmp.arglist
>
> SRC_GROUPS="generic shared"
> export SRC_DIR="tests"
> --
> 2.39.0.314.g84b9a713c41-goog
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] check: wipe tmp.arglist
2022-12-15 16:10 ` Darrick J. Wong
@ 2022-12-19 19:03 ` Leah Rumancik
0 siblings, 0 replies; 4+ messages in thread
From: Leah Rumancik @ 2022-12-19 19:03 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: fstests
Oops, I originally ran into this when I was testing using /var/tmp
instead of /tmp [1], but since we aren't going this route anymore,
I don't need this for my use case. I am attempting to auto-recover when
a test crashes and relaunch the remaining tests and I was seeing some
tests being rerun due to the lingering tmp.arglist file.
This could occur on the off chance someone's /tmp is persistent or if
there wasn't a clean shutdown, maybe via an OOM kill? Perhaps it is
worth including for consistency's sake. I can update the commit
description if we want to keep it. Let me know your thoughts.
- Leah
[1] https://lore.kernel.org/fstests/20221212230646.4022294-1-leah.rumancik@gmail.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-19 19:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-14 21:59 [PATCH] check: wipe tmp.arglist Leah Rumancik
2022-12-15 11:36 ` David Disseldorp
2022-12-15 16:10 ` Darrick J. Wong
2022-12-19 19:03 ` Leah Rumancik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox