Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Incompatible with parallel mode #127

Closed
rpkilby opened this issue Apr 24, 2019 · 1 comment
Closed

Incompatible with parallel mode #127

rpkilby opened this issue Apr 24, 2019 · 1 comment

Comments

@rpkilby
Copy link
Member

rpkilby commented Apr 24, 2019

Hi @ryanhiebert. I've been working on tox-factor, which is a stripped down version of tox-travis's envlist matching feature (e.g. invoked as tox -f py37 to match all py37-* testenvs, instead of matching from Travis environment factors).

Anyway, like tox-travis, tox-factor ultimately works by setting the config.envlist in the tox_configure hook. However, this overrides the parallelized tox subprocesses, which have their testenv set via the TOX_PARALLEL_ENV env var. The fix is to ensure env matching only performs in the main tox process, not the parallelized subprocesses. For reference:

@ryanhiebert
Copy link
Collaborator

Thanks! I've been wondering how that project was going.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants