Salome HOME
Do not enforce sys.exit call after runTests
authorCédric Aguerre <cedric.aguerre@edf.fr>
Mon, 27 Mar 2017 11:29:31 +0000 (13:29 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Mon, 27 Mar 2017 11:29:31 +0000 (13:29 +0200)
bin/appliskel/salome_starter.py
bin/runTests.py

index b381b89c9c990fa4fe017da129d6d431bfd81c3f..795803d408da1eae96165d06d999acdb554565a8 100644 (file)
@@ -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)
index 4255abaf08aebfd89d3eb65611c4ea80191c5d3a..2ea2fce2ca93d3c97fed409ed8b4eb9bbdd03b8a 100644 (file)
@@ -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
 #