* [PATCHSET v2 0/1] fstests: random fixes
@ 2021-07-20 1:08 Darrick J. Wong
2021-07-20 1:08 ` [PATCH 1/1] generic/561: hide assertions when duperemove is killed Darrick J. Wong
0 siblings, 1 reply; 3+ messages in thread
From: Darrick J. Wong @ 2021-07-20 1:08 UTC (permalink / raw)
To: djwong, guaneryu; +Cc: Allison Henderson, linux-xfs, fstests, guan
Hi all,
This series fixes a small problems in generic/561 that was causing
intermittent test failures.
v2: update comments per review suggestions
If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.
This is an extraordinary way to destroy everything. Enjoy!
Comments and questions are, as always, welcome.
--D
kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=random-fixes
xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=random-fixes
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=random-fixes
---
tests/generic/561 | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] generic/561: hide assertions when duperemove is killed
2021-07-20 1:08 [PATCHSET v2 0/1] fstests: random fixes Darrick J. Wong
@ 2021-07-20 1:08 ` Darrick J. Wong
2021-07-22 6:37 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Darrick J. Wong @ 2021-07-20 1:08 UTC (permalink / raw)
To: djwong, guaneryu; +Cc: Allison Henderson, linux-xfs, fstests, guan
From: Darrick J. Wong <djwong@kernel.org>
Use some bash redirection trickery to capture in $seqres.full all of
bash's warnings about duperemove being killed due to assertions
triggering.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
---
tests/generic/561 | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/generic/561 b/tests/generic/561
index bfd4443d..44f07802 100755
--- a/tests/generic/561
+++ b/tests/generic/561
@@ -62,8 +62,13 @@ dupe_run=$TEST_DIR/${seq}-running
touch $dupe_run
for ((i = 0; i < $((2 * LOAD_FACTOR)); i++)); do
while [ -e $dupe_run ]; do
- $DUPEREMOVE_PROG -dr --dedupe-options=same $testdir \
- >>$seqres.full 2>&1
+ # Run cmd in a subshell so that the golden output does not
+ # capture assertions that trigger when killall shoots down
+ # dupremove processes in an arbitrary order, which leaves the
+ # memory in an inconsistent state long enough for the assert
+ # to trip.
+ cmd="$DUPEREMOVE_PROG -dr --dedupe-options=same $testdir"
+ bash -c "$cmd" >> $seqres.full 2>&1
done 2>&1 | sed -e '/Terminated/d' &
dedup_pids="$! $dedup_pids"
done
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-22 6:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-20 1:08 [PATCHSET v2 0/1] fstests: random fixes Darrick J. Wong
2021-07-20 1:08 ` [PATCH 1/1] generic/561: hide assertions when duperemove is killed Darrick J. Wong
2021-07-22 6:37 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox