Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
[fs/lustre-release.git]
/
lustre
/
tests
/
runmultiop_bg_pause
diff --git
a/lustre/tests/runmultiop_bg_pause
b/lustre/tests/runmultiop_bg_pause
old mode 100644
(file)
new mode 100755
(executable)
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`/..}
PTLDEBUG=${PTLDEBUG:--1}
LUSTRE=${LUSTRE:-`dirname $0`/..}
+MULTIOP=${MULTIOP:-multiop}
. $LUSTRE/tests/test-framework.sh
. $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 $*
multiop_bg_pause $*
-exit $?
+rc=$?
+[ "$rc" = 0 ] && echo $! > $MULTIOP_PID_FILE
+exit $rc