From: grev Date: Fri, 14 Nov 2008 16:23:24 +0000 (+0000) Subject: b=17229 X-Git-Tag: v1_7_140~1^16 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4e8d24b1962e106ba18e3f046f6bcc93c401e571;p=fs%2Flustre-release.git b=17229 i=Adilger remote multiop fix --- 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