[libsecret] tap-gtester: Set a standard environment variable for test harness
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret] tap-gtester: Set a standard environment variable for test harness
- Date: Thu, 6 Mar 2014 11:51:33 +0000 (UTC)
commit 083902c18546f8b698d7125848ede411113ef177
Author: Stef Walter <stefw gnome org>
Date: Thu Mar 6 12:50:46 2014 +0100
tap-gtester: Set a standard environment variable for test harness
Lets tests know whether they're running under an automated
testing harness.
build/tap-gtester | 2 ++
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]