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

tristan.ye tristan.ye at oracle.com
Tue Feb 17 20:03:42 PST 2009


Signed-off-by: Tristan Ye <tristan.ye at oracle.com>

On Tue, 2009-02-17 at 18:59 -0800, Marcos Matsunaga wrote:
> 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..4d6c4fd 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(1)




More information about the Ocfs2-test-devel mailing list