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

tristan.ye tristan.ye at oracle.com
Tue Feb 17 20:04:51 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/open_delete/open_delete.py |   11 ++++++++---
>  1 files changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/programs/open_delete/open_delete.py b/programs/open_delete/open_delete.py
> index ef32a28..5772643 100755
> --- a/programs/open_delete/open_delete.py
> +++ b/programs/open_delete/open_delete.py
> @@ -107,7 +107,7 @@ command=os.path.join(config.BINDIR, EXECPGM)
>  if DEBUGON:
>  	o2tf.printlog('command = %s' % command, 
>  	logfile, 0, '')
> -o2tf.openmpi_run(DEBUGON, 
> +ret = o2tf.openmpi_run(DEBUGON, 
>  	'C', 
>  	str('%s -i %s %s' % 
>  	(command, 
> @@ -117,5 +117,10 @@ o2tf.openmpi_run(DEBUGON,
>  	'ssh',
>  	options.logfile,
>  	'WAIT')
> -
> -sys.exit()
> +if not ret:
> +	o2tf.printlog('open_delete: execution successful.',
> +		logfile, 0, '')
> +else:
> +	o2tf.printlog('open_delete: execution failed.',
> +		logfile, 0, '')
> +	sys.exit(1)




More information about the Ocfs2-test-devel mailing list