Public bug reported:
Commit 8789f910812afbf6b87dd371ee5ae30592f1423f ("support parallel
execution of tests") broke existing BATS behavior in which a test file
can set environment variables to be shared between subtests:
if [ -z "$MYSTATE" ]; then
do something
export MYSTATE=something-to-be-used-by-all-tests
fi
Attached is a reproducer. It passes in 8789f9108^ and, more importantly,
bats-core.
** Affects: bats (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "reproducer showing the regression"
https://bugs.launchpad.net/bugs/1882542/+attachment/5381644/+files/env-lost.bats
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1882542
Title:
regression: 8789f9108 broke environment-variable preservation
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bats/+bug/1882542/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs