summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/catch/scripts/scriptCommon.py
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/catch/scripts/scriptCommon.py')
-rw-r--r--3rdparty/catch/scripts/scriptCommon.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/3rdparty/catch/scripts/scriptCommon.py b/3rdparty/catch/scripts/scriptCommon.py
index 6ac381adcb6..9adadb6ddcf 100644
--- a/3rdparty/catch/scripts/scriptCommon.py
+++ b/3rdparty/catch/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