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

tristan.ye tristan.ye at oracle.com
Tue Feb 17 20:02:11 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/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..aac64a6 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(1)




More information about the Ocfs2-test-devel mailing list