Skip to content

Change in conditional command handling in 4.43.0 #3802

@braingram

Description

@braingram

Issue

I'm not sure if this is related to: #3796

One example of a tox file that worked in 4.41 is:
https://github.com/asdf-format/asdf/blob/a50580dfa6915b992a3d43088bfdb75193349867/tox.ini

and I think a minimal example is:

[tox]
env_list =
    foo
    bar

[testenv]
allowlist_externals =
    echo
    date
commands =
    foo: echo \
    date \
    bar: -u

In 4.41 running tox returns:

foo: commands[0]> echo date bar: -u
date bar: -u
foo: OK ✔ in 0.05 seconds
  foo: OK (0.05=setup[0.04]+cmd[0.01] seconds)
  bar: OK (0.00 seconds)
  congratulations :) (0.07 seconds)

With 4.43.0 the output is:

foo: commands[0]> echo date '\'
date \
foo: OK ✔ in 0.05 seconds
bar: commands[0]> u
bar: Exception running subprocess [Errno 2] No such file or directory: 'u'
bar: exit 2 (0.00 seconds) /Users/bgraham/projects/src/asdf/foo> u
bar: command failed but is marked ignore outcome so handling it as success
  foo: OK (0.05=setup[0.04]+cmd[0.01] seconds)
  bar: OK (0.01=setup[0.00]+cmd[0.00] seconds)
  congratulations :) (0.08 seconds)

Environment

Provide at least:

  • OS:

GH runner with example failure:
https://github.com/asdf-format/asdf/actions/runs/22053439290/job/64327872137#step:10:115

Output of running tox

Output of tox
foo: commands[0]> echo date '\'
date \
foo: OK ✔ in 0.05 seconds
bar: commands[0]> u
bar: Exception running subprocess [Errno 2] No such file or directory: 'u'
bar: exit 2 (0.00 seconds) /Users/bgraham/projects/src/asdf/foo> u
bar: command failed but is marked ignore outcome so handling it as success
  foo: OK (0.05=setup[0.04]+cmd[0.01] seconds)
  bar: OK (0.01=setup[0.00]+cmd[0.00] seconds)
  congratulations :) (0.08 seconds)

Minimal example

[tox]
env_list =
    foo
    bar

[testenv]
allowlist_externals =
    echo
    date
commands =
    foo: echo \
    date \
    bar: -u

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions