From: vsr Date: Wed, 6 Nov 2013 08:29:23 +0000 (+0000) Subject: If there's an error when executing script, we should explicitly exit X-Git-Tag: BR_hydro_v_0_3_1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d168c3c989d40747079f29c5af8b27d7ca8b67f;p=modules%2Fkernel.git If there's an error when executing script, we should explicitly exit --- 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