https://github.com/philsquared/Catch
Revision 6b22e7ac805ad0575c9149b616e39c771e40c2ee authored by Torfinn Berset on 14 January 2019, 11:46:18 UTC, committed by Torfinn Berset on 14 January 2019, 11:46:18 UTC
1 parent 75200b4
Tip revision: 6b22e7ac805ad0575c9149b616e39c771e40c2ee authored by Torfinn Berset on 14 January 2019, 11:46:18 UTC
Added Bloomlife to list of commercial users
Added Bloomlife to list of commercial users
Tip revision: 6b22e7a
scriptCommon.py
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/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
Computing file changes ...