Skip to content

Commit d2dd597

Browse files
Marcos MatsunagaMarcos Matsunaga
Marcos Matsunaga
authored and
Marcos Matsunaga
committedFeb 18, 2009
ocfs2-test: run_forkwriter - Converted from LAM/MPI to OpenMPI.
Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga@oracle.com> Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
1 parent 8c45cf1 commit d2dd597

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed
 

‎programs/forkwriter/run_forkwriter.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,27 @@
154154
0,
155155
'')
156156
#
157-
o2tf.StartMPI(DEBUGON, options.nodelist, logfile)
157+
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
158158
#
159159
for z in range(options.count):
160160
o2tf.printlog('run_forkwriter: Running test# %s of %s' % (z, options.count),
161161
logfile,
162162
0,
163163
'')
164-
o2tf.lamexec(DEBUGON, options.procs, config.WAIT, str('%s %s %s %s %s' %
164+
ret = o2tf.openmpi_run(DEBUGON, options.procs, str('%s %s %s %s %s' %
165165
(cmd,
166166
options.filename,
167167
options.count,
168168
options.procs,
169169
options.sleep ) ),
170170
options.nodelist,
171-
options.logfile)
171+
'ssh',
172+
options.logfile,
173+
'WAIT')
174+
if not ret:
175+
o2tf.printlog('run_forkwriter: RUN# %s execution successful.' \
176+
% z, logfile, 0, '')
177+
else:
178+
o2tf.printlog('run_forkwriter: RUN# %s execution failed.' % z,
179+
logfile, 0, '')
180+
sys.exit(1)

0 commit comments

Comments
 (0)
Please sign in to comment.