Skip to content

Conversation

martin-schulze-vireso
Copy link
Member

Fixes #547

This is what a warning looks like:

$ ./bin/bats test/fixtures/warnings/BW01.bats 
BW01.bats
 ✓ Trigger BW01

1 test, 0 failures


The following warnings were encountered during tests:
BW01: `run`'s command `=0 actually-intended-command with some args` exited with code 127, indicating 'Command not found'. Use run's return code checks, e.g. `run -127`, to fix this message.
      (from function `run' in file lib/bats-core/test_functions.bash, line 293,
       in test file test/fixtures/warnings/BW01.bats, line 2)

@martin-schulze-vireso martin-schulze-vireso requested a review from a team as a code owner May 10, 2022 00:23
@martin-schulze-vireso martin-schulze-vireso force-pushed the feature/bats_warnings branch 4 times, most recently from a94d5e3 to 51be463 Compare May 10, 2022 00:40
martin-schulze-vireso added a commit to martin-schulze-vireso/bats-core that referenced this pull request May 11, 2022
@martin-schulze-vireso martin-schulze-vireso force-pushed the feature/bats_warnings branch 4 times, most recently from 874f4d2 to dabb93c Compare May 11, 2022 22:16
@martin-schulze-vireso martin-schulze-vireso merged commit fa88291 into bats-core:master May 11, 2022
@martin-schulze-vireso martin-schulze-vireso deleted the feature/bats_warnings branch May 23, 2022 22:15
debarshiray added a commit to debarshiray/toolbox that referenced this pull request Jul 31, 2022
Bats 1.7.0 emits a warning if a command passed to 'run' returns with an
exit code of 127 [1].

[1] Bats commit c6dc2f88361a4f5b
    bats-core/bats-core#586
    https://bats-core.readthedocs.io/en/stable/warnings/BW01.html
debarshiray added a commit to debarshiray/toolbox that referenced this pull request Jul 31, 2022
Bats 1.7.0 emits a warning if a command passed to 'run' returns with an
exit code of 127 [1].

[1] Bats commit c6dc2f88361a4f5b
    bats-core/bats-core#586
    https://bats-core.readthedocs.io/en/stable/warnings/BW01.html

containers#1081
debarshiray added a commit to debarshiray/toolbox that referenced this pull request Jul 31, 2022
Bats 1.7.0 emits a warning if a command passed to 'run' returns with an
exit code of 127 [1].

This requires Bats >= 1.5.0, which is present in Fedora >=35.
However, bats_require_minimum_version can't be used.

[1] Bats commit c6dc2f88361a4f5b
    bats-core/bats-core#586
    https://bats-core.readthedocs.io/en/stable/warnings/BW01.html

containers#1081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Out of band deprecation warnings
1 participant