tap-gtester: Set a standard environment variable for test harness

Lets tests know whether they're running under an automated
testing harness.
This commit is contained in:
Stef Walter 2014-03-06 12:50:46 +01:00
parent c28233973b
commit 083902c185

View File

@ -151,6 +151,8 @@ def main(argv):
cmd = args.command cmd = args.command
proc = None proc = None
os.environ['HARNESS_ACTIVE'] = '1'
if format in ["auto", "gtest"]: if format in ["auto", "gtest"]:
list_cmd = cmd + ["-l", "--verbose"] list_cmd = cmd + ["-l", "--verbose"]
proc = subprocess.Popen(list_cmd, close_fds=True, stdout=subprocess.PIPE) proc = subprocess.Popen(list_cmd, close_fds=True, stdout=subprocess.PIPE)