Tox: --result-json does not respect --skip-missing-interpreters-option

Created on 15 Nov 2017  路  2Comments  路  Source: tox-dev/tox

When executing tox with --result-json and --skip-missing-interpreters-option, the latter seems not to be reflected in the generated json file. Please find the sample project attached below:
missing_interpreters.tar.gz

To reproduce the issue simply invoke:

tox --skip-missing-interpreters --result-json toxreport.json
Tox main process exits with return code 0, but in toxreport.json file user can see the following:

"python": {
  "setup": [
  {
    "command": [
    "setup virtualenv"
    ],
    "output": "InterpreterNotFound: xyz_unknown_interpreter",
    "retcode": "1"
   }
   ]
}

In my opinion retcode here should be changed to 0 if --skip-missing-interpreters option is explicitly used.

reporting normal easy

Most helpful comment

Sorry for a long radio silence - the test (and PR) is ready. Thanks!

All 2 comments

Hi @r2dan thanks for the report. Having a test reproducing this would also be great.

Sorry for a long radio silence - the test (and PR) is ready. Thanks!

Was this page helpful?
0 / 5 - 0 ratings