Bug 1370242 - Prevent performance data from being uploaded when collecting code coverage. r?jmaher
This patch is to prevent performance data from being collected when code coverage is running. It uses the environment variables that are set when code coverage is being collected to detect when it shouldn't gather the data.
MozReview-Commit-ID: 777vfmwYbe0
--- a/testing/awsy/awsy/process_perf_data.py
+++ b/testing/awsy/awsy/process_perf_data.py
@@ -102,16 +102,20 @@ def create_suite(name, node, data_path):
return suite
def create_perf_data(data_path):
"""
Builds up a performance data blob suitable for submitting to perfherder.
"""
+ if ("GCOV_PREFIX" in os.environ) or ("JS_CODE_COVERAGE_OUTPUT_DIR" in os.environ):
+ print "Code coverage is being collected, performance data will not be gathered."
+ return {}
+
perf_blob = {
'framework': { 'name': 'awsy' },
'suites': []
}
for suite in PERF_SUITES:
perf_blob['suites'].append(create_suite(suite['name'], suite['node'], data_path))