diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-10-14 11:46:38 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-11-01 17:32:43 +0100 |
commit | 8c7d14d3df04772649e3d9d293a4fdd9843f0ffe (patch) | |
tree | b3796ff9fb89456446571c3e7b570a0ae3ad8abe /public_html/index.php | |
parent | 7d52132ada2f00961cc6fbb4d0bed8bc45b295e1 (diff) |
tests: Add env variable to disable code coverage collection
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'public_html/index.php')
-rw-r--r-- | public_html/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public_html/index.php b/public_html/index.php index 6d81b244c..37526d903 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -230,7 +230,7 @@ function guidv4() $testname = null; -if (getenv("ENVIRONMENT") === "testsuite") { +if (getenv("ENVIRONMENT") === "testsuite" && getenv("COLLECT_COVERAGE") == 1) { if (function_exists("phpdbg_get_executable")) { $testname = implode(' ', $argv); } elseif (isset($_SERVER["HTTP_X_TESTSUITE_TESTNAME"])) { |