From: Dave Chinner <david@fromorbit.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: fstests@vger.kernel.org
Subject: Re: generic/256 test failure?
Date: Thu, 11 Dec 2014 15:06:46 +1100 [thread overview]
Message-ID: <20141211040646.GE24183@dastard> (raw)
In-Reply-To: <20141211021517.GF3370@thunk.org>
On Wed, Dec 10, 2014 at 09:15:17PM -0500, Theodore Ts'o wrote:
> I figured it out; the problem is that Debian uses /bin/dash as the
> default shell (which is good, it meant that most Debian systems didn't
> get screwed by the bash security hole). But it's also bad, because
> xfstests has a few /bin/bashisms.
FYI, bash is required for xfstests - we made this explicit several
years ago:
commit 771e69de67b138654a1f63258cfe4c1bf1c156ee
Author: Dave Chinner <david@fromorbit.com>
Date: Wed Jan 20 10:27:08 2010 +1100
xfstests: Convert all tests to use /bin/bash
While most tests use /bin/sh, they are dependent on /bin/sh being a
bash shell. Convert all the tests to execute via /bin/bash as it is
much, much simpler than trying to debug and remove all the bashisms
throughout the test code.
Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
> Normally, this isn't a problem
> because most of the scripts are started by #!/bin/bash. However, on
> my test system fsgqa had a shell of /dev/sh, and in Debian this is
> /bin/dash.
>
> So there are a couple of ways I can fix this.
>
> 1) Document in README that fsgqa must use a shell of fsgqa to
> /bin/bash or some tests might fail.
Please send a patch to do that.
> 2) Change _user_do() to use "su -s /bin/bash $qa_user ...".
>
> 3) Change tests/generic/256 so that instead of
>
> _user_do "$XFS_IO_PROG -f -c \"pwrite 0 $file_size\" $dir/$file_count.bin &> /dev/null"
>
> we use:
>
> _user_do "$XFS_IO_PROG -f -c \"pwrite 0 $file_size\" $dir/$file_count.bin > /dev/null 2>&1"
That's consistent with all the redirections in the rest of the code,
so it's probably a good idea to sanitise the test while this is in
our minds.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
prev parent reply other threads:[~2014-12-11 4:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-11 0:50 generic/256 test failure? Theodore Ts'o
2014-12-11 2:15 ` Theodore Ts'o
2014-12-11 4:06 ` Dave Chinner [this message]
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=20141211040646.GE24183@dastard \
--to=david@fromorbit.com \
--cc=fstests@vger.kernel.org \
--cc=tytso@mit.edu \
/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