[Ocfs2-test-devel] [PATCH 9/9] ocfs2-test: run_lvb_torture.py - checking return code of mpirun.

tristan.ye tristan.ye at oracle.com
Tue Feb 17 18:02:25 PST 2009


Looks nice.

On Tue, 2009-02-17 at 14:39 -0800, Marcos Matsunaga wrote:
> Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
> ---
>  programs/lvb_torture/run_lvb_torture.py |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/programs/lvb_torture/run_lvb_torture.py b/programs/lvb_torture/run_lvb_torture.py
> index 592275a..4fced6a 100755
> --- a/programs/lvb_torture/run_lvb_torture.py
> +++ b/programs/lvb_torture/run_lvb_torture.py
> @@ -157,7 +157,7 @@ if DEBUGON:
>  #
>  o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
>  #
> -o2tf.openmpi_run(DEBUGON, procs, 
> +ret = o2tf.openmpi_run(DEBUGON, procs, 
>  	str('%s -d %s %s -i %s %s %s 2>&1 | tee -a %s' % (cmd, 
>  	dlmfs, 
>  	hbdev, 
> @@ -169,3 +169,10 @@ o2tf.openmpi_run(DEBUGON, procs,
>  	'ssh',
>  	options.logfile,
>  	'WAIT')
> +if not ret:
> +	o2tf.printlog('run_lvb_torture: execution successful.',
> +		logfile, 0, '')
> +else:
> +	o2tf.printlog('run_lvb_torture: execution failed.',
> +		logfile, 0, '')
> +sys.exit(ret)




More information about the Ocfs2-test-devel mailing list