From 4e8d24b1962e106ba18e3f046f6bcc93c401e571 Mon Sep 17 00:00:00 2001 From: grev Date: Fri, 14 Nov 2008 16:23:24 +0000 Subject: [PATCH] b=17229 i=Adilger remote multiop fix --- lustre/tests/runmultiop_bg_pause | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lustre/tests/runmultiop_bg_pause b/lustre/tests/runmultiop_bg_pause index aa6a666..3450e64 100644 --- a/lustre/tests/runmultiop_bg_pause +++ b/lustre/tests/runmultiop_bg_pause @@ -7,8 +7,12 @@ PTLDEBUG=${PTLDEBUG:--1} LUSTRE=${LUSTRE:-`dirname $0`/..} . $LUSTRE/tests/test-framework.sh -multiop_bg_pause $* -pid=$! -rc=$? -echo "$pid" > /tmp/multiop_bg.pid +TMP=${TMP:-/tmp} +MULTIOP_PID_FILE=${MULTIOP_PID_FILE:-$TMP/multiop_bg.pid} +rm -f $MULTIOP_PID_FILE + +pid=$(multiop_bg_pause $* | tail -1) +rc=${PIPESTATUS[0]} + +[ "$rc" = 0 ] && echo $pid > $MULTIOP_PID_FILE exit $rc -- 1.8.3.1