[Ocfs2-test-devel] [PATCH 8/9] ocfs2-test: open_delete.py - checking return code of mpirun.
Marcos Matsunaga
Marcos.Matsunaga at oracle.com
Tue Feb 17 18:59:08 PST 2009
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)
--
1.5.6.5
More information about the Ocfs2-test-devel
mailing list