All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fstests: get section config after RUN_SECTION checks
@ 2022-08-24 19:32 Josef Bacik
  2022-08-25 14:42 ` Zorro Lang
  2022-10-16  6:59 ` Zorro Lang
  0 siblings, 2 replies; 6+ messages in thread
From: Josef Bacik @ 2022-08-24 19:32 UTC (permalink / raw)
  To: fstests, linux-btrfs

While trying to do

./check -s <some section>

I was failing because I had a section defined higher than <some section>
that had TEST_DEV=/some/nonexistent/device, since I was using the other
section to test an experimental drive.  This appears to be because we
run through all of the sections, and when getting the section config we
check to see if it's valid, and in this case the section wasn't valid.

The section I was actually trying to use was valid however.  Fix check
to see if the section we're trying to run is in our list of sections to
run first, and then if it is get the config at that point.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 check | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/check b/check
index 0b2f10ed..ad0ab3cf 100755
--- a/check
+++ b/check
@@ -678,7 +678,6 @@ function run_section()
 
 	OLD_FSTYP=$FSTYP
 	OLD_TEST_FS_MOUNT_OPTS=$TEST_FS_MOUNT_OPTS
-	get_next_config $section
 
 	# Do we need to run only some sections ?
 	if [ ! -z "$RUN_SECTION" ]; then
@@ -708,6 +707,8 @@ function run_section()
 		fi
 	fi
 
+	get_next_config $section
+
 	mkdir -p $RESULT_BASE
 	if [ ! -d $RESULT_BASE ]; then
 		echo "failed to create results directory $RESULT_BASE"
-- 
2.26.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-16  6:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-24 19:32 [PATCH] fstests: get section config after RUN_SECTION checks Josef Bacik
2022-08-25 14:42 ` Zorro Lang
2022-09-23 14:19   ` Zorro Lang
2022-10-10 15:56     ` Josef Bacik
2022-10-11 14:17       ` Zorro Lang
2022-10-16  6:59 ` Zorro Lang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.