From ada77737fcc32130dedcd5e8992c2aafdf5cf3d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Mon, 27 Mar 2017 13:29:31 +0200 Subject: [PATCH] Do not enforce sys.exit call after runTests --- bin/appliskel/salome_starter.py | 4 ++-- bin/runTests.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/appliskel/salome_starter.py b/bin/appliskel/salome_starter.py index b381b89c9..795803d40 100644 --- a/bin/appliskel/salome_starter.py +++ b/bin/appliskel/salome_starter.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -# Copyright (C) 2014-2016 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2014-2017 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -54,7 +54,7 @@ def initialize(launcherPath, launcherFile): if appliPath is None: print "ERROR: Unable to find application folder" - sys.exit(0) + sys.exit(1) appliPath = os.path.relpath(appliPath, homePath) absoluteAppliPath = os.path.join(homePath, appliPath) diff --git a/bin/runTests.py b/bin/runTests.py index 4255abaf0..2ea2fce2c 100644 --- a/bin/runTests.py +++ b/bin/runTests.py @@ -1,4 +1,4 @@ -# Copyright (C) 2015-2016 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2015-2017 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -86,5 +86,5 @@ def runTests(args, exe=None): command = ["ctest"] + args p = subprocess.Popen(command, cwd=testPath) p.communicate() - sys.exit(p.returncode) + return p.returncode # -- 2.39.2