Skip to content

tox failing to ignore return code #2561

@osfrickler

Description

@osfrickler

Issue

Sample tox.ini:

[testenv]
allowlist_externals = false
commands =
  -false

Expected result from tox (works with tox3): pass

Result with 4.0.0rc1:

$ ~/vv/bin/tox 
py: commands[0]> -false
py: exit 2 (0.00 seconds) /home/jharbott/tmp> -false
  py: FAIL code 2 (0.06=setup[0.06]+cmd[0.00] seconds)
  evaluation failed :( (0.15 seconds)

Environment

Provide at least:

  • OS: Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions