diff options
| author | Phil Nash | 2017-01-09 14:12:12 +0000 |
|---|---|---|
| committer | Phil Nash | 2017-01-09 14:37:28 +0000 |
| commit | 976a6554960e2cd3c5d39c7d84bbef1af4d762e5 (patch) | |
| tree | 35152f9c459b093e2b43a5582811b0d5c00f743e /scripts/scriptCommon.py | |
| parent | 37e1e243093052b540de78dd50c78be51b5728d2 (diff) | |
| download | catch3-976a6554960e2cd3c5d39c7d84bbef1af4d762e5.tar.gz | |
Approval tests can use Catch path fixed in env. var, and convert nullptr and __null to 0 for comparison
Diffstat (limited to 'scripts/scriptCommon.py')
| -rw-r--r-- | scripts/scriptCommon.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/scriptCommon.py b/scripts/scriptCommon.py index 6ac381ad..9adadb6d 100644 --- a/scripts/scriptCommon.py +++ b/scripts/scriptCommon.py @@ -2,8 +2,13 @@ import os import sys import subprocess + catchPath = os.path.dirname(os.path.realpath( os.path.dirname(sys.argv[0]))) +def getBuildExecutable(): + dir = os.environ.get('CATCH_DEV_OUT_DIR', "cmake-build-debug/SelfTest") + return dir + def runAndCapture( args ): child = subprocess.Popen(" ".join( args ), shell=True, stdout=subprocess.PIPE) lines = [] @@ -18,4 +23,4 @@ def runAndCapture( args ): line = "" else: line = line + out - return lines
\ No newline at end of file + return lines |