From ad9c7f63f0ae431de063563dc8e8f0d60c22219b Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Fri, 20 Apr 2018 12:30:43 -0700 Subject: [PATCH] Fix coverate on py3 windows builds Setting a value for will cause coverage to look for a config file called named '1' and in-turn raises an Exception. Based on the docs, if the environment variable exists coverage is enabled. Just defined the environment variable instead of giving it a value. --- tests/support/parser/cover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/support/parser/cover.py b/tests/support/parser/cover.py index bb91fea4d8..ca4e954bd1 100644 --- a/tests/support/parser/cover.py +++ b/tests/support/parser/cover.py @@ -175,7 +175,7 @@ class SaltCoverageTestingParser(SaltTestingParser): # Update environ so that any subprocess started on tests are also # included in the report coverage_options['data_suffix'] = True - os.environ['COVERAGE_PROCESS_START'] = '1' + os.environ['COVERAGE_PROCESS_START'] = '' os.environ['COVERAGE_OPTIONS'] = json.dumps(coverage_options) # Setup coverage