Skip to content

bats-format-junit: line 86: name: unbound variable #629

@vasudev0529

Description

@vasudev0529

Hi ,

I am trying to use the submodules of bats-core repo and when trying to take the junit report, it is getting failed with the below error.

./../../../submodules/bats/bin/bats -F junit ./ > <my_dir>
<mydir>/submodules/bats/libexec/bats-core/bats-format-junit: line 86: name: unbound variable
<mydir>/submodules/bats/libexec/bats-core/bats-format-junit: line 86: name: unbound variable

below is the bats-core submodule being used,

git submodule
dd2d573 ../../../submodules/bats (v1.7.0-114-gdd2d573)

As a workaround, tried changing the code from set -euo pipefail to set -eo pipefail in bats/libexec/bats-core/bats-format-junit . Not sure if that is right, please guide me here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Bash CodeEverything regarding the bash codePriority: MediumWrong or misleading documentation, broken behavior with workaroundStatus: ConfirmedThe reproducer worked as describedType: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions