diff options
| author | Martin Hořeňovský | 2022-11-06 00:17:51 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-11-06 21:23:16 +0100 |
| commit | 297a17593fe6c0545fe28cfb909243ee831ac27f (patch) | |
| tree | 79ecc271c2df85eeef2390d53df4b1434cd22127 /tools/scripts/scriptCommon.py | |
| parent | d1ef4614711ec157f61274b68c4065f801bd128a (diff) | |
| download | catch3-297a17593fe6c0545fe28cfb909243ee831ac27f.tar.gz | |
Cleanup the helper scripts
* Remove from __future__ import print_function, because we
no longer support Python2.
* Clean out unused parts of tools/scripts/scriptCommon.py
* Move appveyorMergeCoverageScript to Python3
* Update user reporting in *release scripts
* Cleanup module imports
Diffstat (limited to 'tools/scripts/scriptCommon.py')
| -rw-r--r-- | tools/scripts/scriptCommon.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tools/scripts/scriptCommon.py b/tools/scripts/scriptCommon.py index a6930063..5894185d 100644 --- a/tools/scripts/scriptCommon.py +++ b/tools/scripts/scriptCommon.py @@ -1,31 +1,4 @@ import os import sys -import subprocess - catchPath = os.path.dirname(os.path.dirname(os.path.realpath( os.path.dirname(sys.argv[0])))) - -def getBuildExecutable(): - if os.name == 'nt': - dir = os.environ.get('CATCH_DEV_OUT_DIR', "cmake-build-debug/projects/SelfTest.exe") - return dir - else: - dir = os.environ.get('CATCH_DEV_OUT_DIR', "cmake-build-debug/projects/SelfTest") - return dir - - -def runAndCapture( args ): - child = subprocess.Popen(" ".join( args ), shell=True, stdout=subprocess.PIPE) - lines = [] - line = "" - while True: - out = child.stdout.read(1) - if out == '' and child.poll(): - break - if out != '': - if out == '\n': - lines.append( line ) - line = "" - else: - line = line + out - return lines |