From: Cédric Aguerre Date: Mon, 27 Mar 2017 11:29:31 +0000 (+0200) Subject: Do not enforce sys.exit call after runTests X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ada77737fcc32130dedcd5e8992c2aafdf5cf3d6;p=modules%2Fyacs.git Do not enforce sys.exit call after runTests --- 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 #