From: David Howells <dhowells@redhat.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: dhowells@redhat.com, linux-xfs <linux-xfs@vger.kernel.org>,
Christoph Hellwig <hch@infradead.org>,
Dave Chinner <david@fromorbit.com>,
fstests <fstests@vger.kernel.org>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Eryu Guan <eguan@redhat.com>
Subject: Re: [PATCH 2/4] xfstests: Add first statx test
Date: Mon, 03 Apr 2017 12:18:45 +0100 [thread overview]
Message-ID: <23054.1491218325@warthog.procyon.org.uk> (raw)
In-Reply-To: <CAOQ4uxhBgQ6q5GMe=G14Swvxto+y2_rZucZzK521Z4mCryOrZg@mail.gmail.com>
Amir Goldstein <amir73il@gmail.com> wrote:
> I know Eryu told you that you can change the default of status to success,
> ... what's the benefit of doing that.
Simple: All the tests should be carried out, even if one or more fail. The
script should not simply abort at that point, but should rather give the
cumulative error at the end.
This means the default should be success and this altered to failure on the
failure of any subtest (ie. we're OR'ing them).
There should needs to be a way to report any subtest that was skipped because
the kernel or the fs doesn't support it.
> A simple way to deal with this is to do
>
> function check_stat () {
> $here/src/stat_test $* || exit
> }
No. This is the wrong thing to do (see above). Better would be to either set
status=1 here (but we're inside a function, so I'm not sure that'll work) or
to replace the exit above with "|| echo stat_test failed" and let the output
comparator handle it.
David
next prev parent reply other threads:[~2017-04-03 11:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-03 10:27 [PATCH 1/4] xfstests: Add an auxiliary program to create an AF_UNIX socket David Howells
2017-04-03 10:27 ` [PATCH 2/4] xfstests: Add first statx test David Howells
2017-04-03 10:53 ` Amir Goldstein
2017-04-03 11:18 ` David Howells [this message]
2017-04-03 11:32 ` Amir Goldstein
2017-04-03 11:46 ` David Howells
2017-04-03 11:54 ` Amir Goldstein
2017-04-03 10:27 ` [PATCH 3/4] xfstests: Partially expand the documentation David Howells
2017-04-03 10:27 ` [PATCH 4/4] xfstests: Check the stx_attributes settable by chattr David Howells
2017-04-03 11:02 ` Amir Goldstein
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=23054.1491218325@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=amir73il@gmail.com \
--cc=david@fromorbit.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=hch@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox