From: Josef Bacik <josef@toxicpanda.com>
To: Zorro Lang <zlang@redhat.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH] fstests: get section config after RUN_SECTION checks
Date: Mon, 10 Oct 2022 11:56:48 -0400 [thread overview]
Message-ID: <Y0RAwGyGsa+mL7hW@localhost.localdomain> (raw)
In-Reply-To: <20220923141958.jps5bddtsnbli7ed@zlang-mailbox>
On Fri, Sep 23, 2022 at 10:19:58PM +0800, Zorro Lang wrote:
> On Thu, Aug 25, 2022 at 10:42:42PM +0800, Zorro Lang wrote:
> > On Wed, Aug 24, 2022 at 03:32:10PM -0400, Josef Bacik wrote:
> > > 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>
> > > ---
> >
> > May you provide any specific config examples to clarify what kind of issue
> > you feel wrong, and what kind of usage you hope to support :)
>
> Hi Josef,
>
> Although you didn't reply this email, but I think I might hit similar
> problem with you recently when I tried to do a btrfs test. I wrote a
> config.file likes:
>
Sorry I don't actually get emails to my inbox, I use lei so sometimes miss
simple things like this.
I'm using kdevops, and I had a general config that I was using for all hosts,
except one host has a PCI passthrough ZNS device. So I have something akin to
this
[defaut]
TEST_DIR=/mnt/test
SCRATCH_MNT=/mnt/scratch
[btrfs-normal]
TEST_DEV=/dev/sda
SCRATCH_DEV_POOL="/dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh"
SCRATCH_LOGDEV=/dev/loop0
[btrfs-zns]
TEST_DEV=/dev/nvme0n1
SCRATCH_DEV=/dev/nvme1n1
[btrfs-compress]
TEST_DEV=/dev/sda
SCRATCH_DEV_POOL="/dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh"
SCRATCH_LOGDEV=/dev/loop0
MOUNT_OPTIONS="-o compress"
If I tried to run
./check -s btrfs-compress
it would fail because it couldn't find /dev/nvme0n1, despite it not being in the
section I'm running. Thanks,
Josef
next prev parent reply other threads:[~2022-10-10 15:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2022-10-11 14:17 ` Zorro Lang
2022-10-16 6:59 ` Zorro Lang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y0RAwGyGsa+mL7hW@localhost.localdomain \
--to=josef@toxicpanda.com \
--cc=fstests@vger.kernel.org \
--cc=zlang@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.