From 2d168c3c989d40747079f29c5af8b27d7ca8b67f Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 6 Nov 2013 08:29:23 +0000 Subject: [PATCH] If there's an error when executing script, we should explicitly exit --- bin/runSalome.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index e92309a7b..311d945ee 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -782,7 +782,8 @@ def useSalome(args, modules_list, modules_root_dir): command = formatScriptsAndArgs(toimport) if command: proc = subprocess.Popen(command, shell=True) - proc.wait() + res = proc.wait() + if not res: sys.exit(1) # if there's an error when executing script, we should explicitly exit return clt -- 2.39.2