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

Marcos Matsunaga Marcos.Matsunaga at oracle.com
Tue Feb 17 14:38:58 PST 2009


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

diff --git a/programs/write_torture/run_write_torture.py b/programs/write_torture/run_write_torture.py
index 3781393..eaeb6e5 100755
--- a/programs/write_torture/run_write_torture.py
+++ b/programs/write_torture/run_write_torture.py
@@ -208,12 +208,21 @@ for z in range(options.count):
 	0, 
 	'')
 #
-	o2tf.StartMPI(DEBUGON, options.nodelist, logfile)
-	o2tf.lamexec(DEBUGON, options.procs, config.WAIT, 
+	o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
+	ret = o2tf.openmpi_run(DEBUGON, options.procs,
 		str('%s -b %s -l %s -s %s -f %s' % (cmd, 
 		options.blocksize, 
 		options.logfile, 
 		options.seconds, 
 		os.path.join(options.directory, filename) ) ), 
 		options.nodelist, 
-		options.logfile)
+		'ssh',
+		options.logfile,
+		'WAIT')
+	if not ret:
+		o2tf.printlog('run_write_torture: main - execution successful.',
+			logfile, 0, '')
+	else:
+		o2tf.printlog('run_write_torture: main - execution failed.',
+			logfile, 0, '')
+		sys.exit(ret)
-- 
1.5.6.5




More information about the Ocfs2-test-devel mailing list