From 04076715a642d0caa6436e81d35416e711b80d52 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 26 Dec 2009 08:49:00 -0500 Subject: COVERAGE_PROCESS_START now is the name of the rc file, and we use it to measure our own coverage. --- coverage/control.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 415df277..94cb931f 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -382,15 +382,13 @@ def process_startup(): import coverage; coverage.process_startup() If the environment variable COVERAGE_PROCESS_START is defined, coverage - measurement is started. The value of the variable is the data file - prefix to use. + measurement is started. The value of the variable is the config file + to use. """ cps = os.environ.get("COVERAGE_PROCESS_START") if cps: - cov = coverage( - auto_data=True, data_file=cps, data_suffix=True, branch=True - ) + cov = coverage(config_file=cps, auto_data=True, data_suffix=True) if os.environ.get("COVERAGE_COVERAGE"): # Measuring coverage within coverage.py takes yet more trickery. cov.cover_prefix = "Please measure coverage.py!" -- cgit v1.2.1