* [PATCH] don't run test 167 if killall is not installed
@ 2008-05-15 5:39 Christoph Hellwig
2008-05-15 6:40 ` Tim Shimmin
2008-05-15 6:40 ` David Chinner
0 siblings, 2 replies; 7+ messages in thread
From: Christoph Hellwig @ 2008-05-15 5:39 UTC (permalink / raw)
To: xfs
Test 167 will leave runaway fsstress processes around in case killall is
not installed and thus make all following tests fail. This patch checks
for killall beeing installed and error out otherwise.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: xfstests/167
===================================================================
RCS file: /cvs/xfs-cmds/xfstests/167,v
retrieving revision 1.3
diff -u -p -r1.3 167
--- xfstests/167 2 Aug 2007 16:19:56 -0000 1.3
+++ xfstests/167 15 May 2008 05:34:20 -0000
@@ -13,6 +13,7 @@ owner=dgc@sgi.com
seq=`basename $0`
echo "QA output created by $seq"
+killall="/usr/bin/killall"
here=`pwd`
tmp=/tmp/$$
rm -f $seq.full
@@ -43,6 +44,8 @@ workout()
_supported_fs xfs
_supported_os Linux
+[ -x $killall ] || _notrun "$killall executable not found"
+
_setup_testdir
_require_scratch
_scratch_mkfs_xfs >/dev/null 2>&1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] don't run test 167 if killall is not installed
2008-05-15 5:39 [PATCH] don't run test 167 if killall is not installed Christoph Hellwig
@ 2008-05-15 6:40 ` Tim Shimmin
2008-05-15 7:13 ` Christoph Hellwig
2008-05-15 6:40 ` David Chinner
1 sibling, 1 reply; 7+ messages in thread
From: Tim Shimmin @ 2008-05-15 6:40 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
Christoph Hellwig wrote:
> Test 167 will leave runaway fsstress processes around in case killall is
> not installed and thus make all following tests fail. This patch checks
> for killall beeing installed and error out otherwise.
>
>
Looks reasonable.
However:
* could use set_prog_path like we do in common.config.
* I wonder if one could use "kill -$pgid" on the process group
for fsstress instead of killall (I've never tried it :).
--Tim
> Signed-off-by: Christoph Hellwig <hch@lst.de>
>
> Index: xfstests/167
> ===================================================================
> RCS file: /cvs/xfs-cmds/xfstests/167,v
> retrieving revision 1.3
> diff -u -p -r1.3 167
> --- xfstests/167 2 Aug 2007 16:19:56 -0000 1.3
> +++ xfstests/167 15 May 2008 05:34:20 -0000
> @@ -13,6 +13,7 @@ owner=dgc@sgi.com
> seq=`basename $0`
> echo "QA output created by $seq"
>
> +killall="/usr/bin/killall"
> here=`pwd`
> tmp=/tmp/$$
> rm -f $seq.full
> @@ -43,6 +44,8 @@ workout()
> _supported_fs xfs
> _supported_os Linux
>
> +[ -x $killall ] || _notrun "$killall executable not found"
> +
> _setup_testdir
> _require_scratch
> _scratch_mkfs_xfs >/dev/null 2>&1
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] don't run test 167 if killall is not installed
2008-05-15 5:39 [PATCH] don't run test 167 if killall is not installed Christoph Hellwig
2008-05-15 6:40 ` Tim Shimmin
@ 2008-05-15 6:40 ` David Chinner
1 sibling, 0 replies; 7+ messages in thread
From: David Chinner @ 2008-05-15 6:40 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
On Thu, May 15, 2008 at 07:39:18AM +0200, Christoph Hellwig wrote:
> Test 167 will leave runaway fsstress processes around in case killall is
> not installed and thus make all following tests fail. This patch checks
> for killall beeing installed and error out otherwise.
Looks sane to me. I'll check it in in a minute....
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] don't run test 167 if killall is not installed
2008-05-15 6:40 ` Tim Shimmin
@ 2008-05-15 7:13 ` Christoph Hellwig
2008-05-15 7:36 ` David Chinner
0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2008-05-15 7:13 UTC (permalink / raw)
To: Tim Shimmin; +Cc: Christoph Hellwig, xfs
On Thu, May 15, 2008 at 04:40:01PM +1000, Tim Shimmin wrote:
> Looks reasonable.
>
> However:
>
> * could use set_prog_path like we do in common.config.
>
> * I wonder if one could use "kill -$pgid" on the process group
> for fsstress instead of killall (I've never tried it :).
Dave already commited the original version, but I'll send an update
to use set_prog_path later today.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] don't run test 167 if killall is not installed
2008-05-15 7:13 ` Christoph Hellwig
@ 2008-05-15 7:36 ` David Chinner
2008-05-15 7:38 ` Christoph Hellwig
0 siblings, 1 reply; 7+ messages in thread
From: David Chinner @ 2008-05-15 7:36 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Tim Shimmin, xfs
On Thu, May 15, 2008 at 09:13:38AM +0200, Christoph Hellwig wrote:
> On Thu, May 15, 2008 at 04:40:01PM +1000, Tim Shimmin wrote:
> > Looks reasonable.
> >
> > However:
> >
> > * could use set_prog_path like we do in common.config.
> >
> > * I wonder if one could use "kill -$pgid" on the process group
> > for fsstress instead of killall (I've never tried it :).
>
> Dave already commited the original version, but I'll send an update
> to use set_prog_path later today.
Sorry, didn't see that Tim replied as well. set_prog_path is fine
by me too, but stopping every test from running because killall is
not present is a bit of overkill, isn't it?
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] don't run test 167 if killall is not installed
2008-05-15 7:36 ` David Chinner
@ 2008-05-15 7:38 ` Christoph Hellwig
2008-05-19 1:45 ` Timothy Shimmin
0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2008-05-15 7:38 UTC (permalink / raw)
To: David Chinner; +Cc: Christoph Hellwig, Tim Shimmin, xfs
On Thu, May 15, 2008 at 05:36:05PM +1000, David Chinner wrote:
> > Dave already commited the original version, but I'll send an update
> > to use set_prog_path later today.
>
> Sorry, didn't see that Tim replied as well. set_prog_path is fine
> by me too, but stopping every test from running because killall is
> not present is a bit of overkill, isn't it?
My plan was to use it in 167 not common.config. But I don't really care
either way.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] don't run test 167 if killall is not installed
2008-05-15 7:38 ` Christoph Hellwig
@ 2008-05-19 1:45 ` Timothy Shimmin
0 siblings, 0 replies; 7+ messages in thread
From: Timothy Shimmin @ 2008-05-19 1:45 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: David Chinner, xfs
Christoph Hellwig wrote:
> On Thu, May 15, 2008 at 05:36:05PM +1000, David Chinner wrote:
>>> Dave already commited the original version, but I'll send an update
>>> to use set_prog_path later today.
>> Sorry, didn't see that Tim replied as well. set_prog_path is fine
>> by me too, but stopping every test from running because killall is
>> not present is a bit of overkill, isn't it?
>
> My plan was to use it in 167 not common.config. But I don't really care
> either way.
Yeah, I was just meaning for 167 too.
--Tim
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-05-19 1:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15 5:39 [PATCH] don't run test 167 if killall is not installed Christoph Hellwig
2008-05-15 6:40 ` Tim Shimmin
2008-05-15 7:13 ` Christoph Hellwig
2008-05-15 7:36 ` David Chinner
2008-05-15 7:38 ` Christoph Hellwig
2008-05-19 1:45 ` Timothy Shimmin
2008-05-15 6:40 ` David Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox