]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: get section config after RUN_SECTION checks v2022.10.16
authorJosef Bacik <josef@toxicpanda.com>
Wed, 24 Aug 2022 19:32:10 +0000 (15:32 -0400)
committerZorro Lang <zlang@kernel.org>
Sun, 16 Oct 2022 07:00:05 +0000 (15:00 +0800)
commita75c5f50584e03ca7862ad51f48efd2d524d1dc5
treed2c23a48d8ae0b797c94ede903e1ea664bff95ec
parente9483160803966faa62e039128a2c33ea3e7922d
fstests: get section config after RUN_SECTION checks

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>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
check