sstephenson / bats

Bash Automated Testing System
MIT License
7.12k stars 519 forks source link

skip cuts comment after closing bracket #240

Closed and0x000 closed 5 years ago

and0x000 commented 6 years ago

If I use a regular bracket in the comment of the "skip" command, everything after that bracket is dropped.

Example: setup(){ skip "foo)bar" } @test "skip this" { echo 'asdf' }

Expected Output:

  • skip this (skipped: foo)bar)

Actual Output:

  • skip this (skipped: foo)

Does not matter if I use single or double quotes for the comment.

Tested with bats from debian repo: https://packages.debian.org/stretch/bats

and0x000 commented 5 years ago

supposed to be resolved with https://github.com/bats-core/bats-core/pull/48