[Ocfs2-test-devel] [PATCH 5/9] ocfs2-test: run_forkwriter - Converted from LAM/MPI to OpenMPI.

Marcos Matsunaga Marcos.Matsunaga at oracle.com
Tue Feb 17 14:39:02 PST 2009


Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
---
 programs/forkwriter/run_forkwriter.py |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/programs/forkwriter/run_forkwriter.py b/programs/forkwriter/run_forkwriter.py
index 11ed212..19b80e2 100644
--- a/programs/forkwriter/run_forkwriter.py
+++ b/programs/forkwriter/run_forkwriter.py
@@ -154,18 +154,27 @@ if DEBUGON:
 		0, 
 		'')
 #
-o2tf.StartMPI(DEBUGON, options.nodelist, logfile)
+o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
 #
 for z in range(options.count):
 	o2tf.printlog('run_forkwriter: Running test# %s of %s' % (z, options.count), 
 	logfile, 
 	0, 
 	'')
-	o2tf.lamexec(DEBUGON, options.procs, config.WAIT, str('%s %s %s %s %s' %
+	ret = o2tf.openmpi_run(DEBUGON, options.procs, str('%s %s %s %s %s' %
 		(cmd, 
 		options.filename, 
 		options.count, 
 		options.procs, 
 		options.sleep ) ), 
 		options.nodelist, 
-		options.logfile)
+		'ssh',
+		options.logfile,
+		'WAIT')
+	if not ret:
+		o2tf.printlog('run_forkwriter: RUN# %s execution successful.' \
+		% z, logfile, 0, '')
+	else:
+		o2tf.printlog('run_forkwriter: RUN# %s execution failed.' % z,
+			logfile, 0, '')
+		sys.exit(ret)
-- 
1.5.6.5




More information about the Ocfs2-test-devel mailing list