]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
Don't run 167 if killall is not installed
authorDave Chinner <dgc@sgi.com>
Thu, 15 May 2008 16:39:01 +0000 (16:39 +0000)
committerDave Chinner <dgc@sgi.com>
Thu, 15 May 2008 16:39:01 +0000 (16:39 +0000)
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>
Merge of master-melb:xfs-cmds:31171a by kenmcd.

  don't run if killall is not installed.

167

diff --git a/167 b/167
index be988314edab015042be8a8a4639c47eff003daa..e63b25095ebf9a14b2253db3dec203d958d89a7a 100644 (file)
--- a/167
+++ b/167
@@ -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