From 9917a9198564829a321469ea84147c6e42e90efb Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 21 Nov 2007 20:46:27 +0000
Subject: [PATCH] b=14054 i=Nathan

force runtests to use 1 mount point
---
 lustre/tests/runtests | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lustre/tests/runtests b/lustre/tests/runtests
index 2d702f5561..31571f3ae0 100755
--- a/lustre/tests/runtests
+++ b/lustre/tests/runtests
@@ -40,11 +40,7 @@ while [ "$1" ]; do
 	shift
 done
 
-mounted_lustre_filesystems() {
-	awk '($3 ~ "lustre" && $1 ~ ":") { print $2 }' /proc/mounts
-}
-
-MOUNTED="`mounted_lustre_filesystems`"
+MOUNTED=$(mounted_lustre_filesystems | head -1)
 if [ -z "$MOUNTED" ]; then
 	formatall
 	setupall
-- 
GitLab