[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 18:01:55 PST 2009


Looks good

On Tue, 2009-02-17 at 14:39 -0800, Marcos Matsunaga wrote:
> Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
> ---
>  programs/open_delete/open_delete.py |   10 ++++++++--
>  1 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/programs/open_delete/open_delete.py b/programs/open_delete/open_delete.py
> index ef32a28..52c315a 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,11 @@ o2tf.openmpi_run(DEBUGON,
>  	'ssh',
>  	options.logfile,
>  	'WAIT')
> +if not ret:
> +	o2tf.printlog('open_delete: execution successful.',
> +		logfile, 0, '')
> +else:
> +	o2tf.printlog('open_delete: execution failed.',
> +		logfile, 0, '')
>  
> -sys.exit()
> +sys.exit(ret)




More information about the Ocfs2-test-devel mailing list