File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ def run_tests_with_coverage(tracer, *runner_args):
163
163
os .environ ['COVERAGE_HOME' ] = os .getcwd ()
164
164
context = os .environ .get ('COVERAGE_CONTEXT' )
165
165
if context :
166
+ if context [0 ] == "$" :
167
+ context = os .environ [context [1 :]]
166
168
os .environ ['COVERAGE_CONTEXT' ] = context + "." + tracer
167
169
168
170
# Create the .pth file that will let us measure coverage in sub-processes.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ source =
16
16
${COVERAGE_HOME-.}/tests
17
17
# $set_env.py: COVERAGE_DYNCTX - Set to 'test_function' for who-tests-what
18
18
dynamic_context = ${COVERAGE_DYNCTX-none}
19
- # $set_env.py: COVERAGE_CONTEXT - Set to a static context for this run
19
+ # $set_env.py: COVERAGE_CONTEXT - Static context for this run (or $ENV_VAR like $TOX_ENV_NAME)
20
20
context = ${COVERAGE_CONTEXT-none}
21
21
22
22
[report]
You can’t perform that action at this time.
0 commit comments