Salome HOME
add options-help get from launcher
[modules/kernel.git] / bin / runTests.py
index 4255abaf08aebfd89d3eb65611c4ea80191c5d3a..d1d5656c3df90844c9b657558b6164df83d48672 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2015-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2015-2024  CEA, EDF, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -65,7 +65,7 @@ For complete description of available options, pleaser refer to ctest documentat
     return []
 
   if args[0] in ["-h", "--help"]:
-    print usage + epilog
+    print(usage + epilog)
     sys.exit(0)
 
   return args
@@ -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
 #