X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Frunmultiop_bg_pause;h=f309ab3dd903de3fb9027f807cd17876385a8e88;hb=764218793b300af6ae16706314392518aee55024;hp=823ebddece9d8aa6e474c66b6c6dc141e18728ba;hpb=4b6f6519c86355f8ac9899a06e2510348a0f9413;p=fs%2Flustre-release.git diff --git a/lustre/tests/runmultiop_bg_pause b/lustre/tests/runmultiop_bg_pause old mode 100644 new mode 100755 index 823ebdd..f309ab3 --- a/lustre/tests/runmultiop_bg_pause +++ b/lustre/tests/runmultiop_bg_pause @@ -5,7 +5,14 @@ PTLDEBUG=${PTLDEBUG:--1} LUSTRE=${LUSTRE:-`dirname $0`/..} +MULTIOP=${MULTIOP:-multiop} . $LUSTRE/tests/test-framework.sh +TMP=${TMP:-/tmp} +MULTIOP_PID_FILE=${MULTIOP_PID_FILE:-$TMP/multiop_bg.pid} +rm -f $MULTIOP_PID_FILE + multiop_bg_pause $* -exit $? +rc=$? +[ "$rc" = 0 ] && echo $! > $MULTIOP_PID_FILE +exit $rc