Skip to content

Commit

Permalink
rename the variable carrying args for trial
Browse files Browse the repository at this point in the history
  • Loading branch information
exarkun committed Aug 7, 2023
1 parent 4844406 commit bbda31b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ setenv =
coverage: COVERAGE_FILE={toxworkdir}/coverage.{envname}
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc

TRIAL_JOBS={env:TRIAL_JOBS:}
TRIAL_ARGS={env:TRIAL_ARGS:}

commands =
# Run trial without coverage
test: python -b "{envdir}/bin/trial" --random=0 {env:TRIAL_JOBS} --temp-directory="{envlogdir}/trial.d" {posargs:{env:PY_MODULE}}
test: python -b "{envdir}/bin/trial" --random=0 {env:TRIAL_ARGS} --temp-directory="{envlogdir}/trial.d" {posargs:{env:PY_MODULE}}

# Run trial with coverage
# Notes:
Expand All @@ -79,7 +79,7 @@ commands =
# - Use `tox -e coverage_report` to generate a report for all environments.
coverage: python -c 'f=open("{envsitepackagesdir}/zz_coverage.pth", "w"); f.write("import coverage; coverage.process_startup()\n")'
coverage: coverage erase
coverage: python -b -m coverage run --source="{env:PY_MODULE}" "{envdir}/bin/trial" --random=0 {env:TRIAL_JOBS} --temp-directory="{envlogdir}/trial.d" {posargs:{env:PY_MODULE}}
coverage: python -b -m coverage run --source="{env:PY_MODULE}" "{envdir}/bin/trial" --random=0 {env:TRIAL_ARGS} --temp-directory="{envlogdir}/trial.d" {posargs:{env:PY_MODULE}}
coverage: coverage combine
coverage: coverage xml

Expand Down

0 comments on commit bbda31b

Please sign in to comment.