Closed NBardelot closed 7 years ago
OK found the issue... My function name "test_whoami" is colliding with the tool's choice of names when it generates some internal functions/files/whatever.
You might consider to change the internal "test_" for something that the user would not* use as a test function name (like prefixing with a random string from /dev/urandom or something).
Here are the files I load in my tests (those are purposefully "dumb" as I'm testing bats and want to see how it behaves) :
and here is the bats file with two tests:
And the output (there is a "2" on the last line after Ctrl+C) :
And please note that:
export -f