summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2014-03-06 12:50:46 +0100
committerStef Walter <stefw@gnome.org>2014-03-06 12:50:46 +0100
commit083902c18546f8b698d7125848ede411113ef177 (patch)
treecbba79600caf2ec8d535189e08784f6662f0710b /build
parentc28233973bb18c4cc52411928de9c65989598e5e (diff)
downloadlibsecret-083902c18546f8b698d7125848ede411113ef177.tar.gz
tap-gtester: Set a standard environment variable for test harness
Lets tests know whether they're running under an automated testing harness.
Diffstat (limited to 'build')
-rwxr-xr-xbuild/tap-gtester2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/tap-gtester b/build/tap-gtester
index ff7506a..4b9dafb 100755
--- a/build/tap-gtester
+++ b/build/tap-gtester
@@ -151,6 +151,8 @@ def main(argv):
cmd = args.command
proc = None
+ os.environ['HARNESS_ACTIVE'] = '1'
+
if format in ["auto", "gtest"]:
list_cmd = cmd + ["-l", "--verbose"]
proc = subprocess.Popen(list_cmd, close_fds=True, stdout=subprocess.PIPE)