[x] I have searched the existing issues and haven't found one that matches what I'm reporting or requesting now.
[x] If this is a bug report, I have searched the Bash changelog for information that may explain or provide clues to the behavior I'm observing and reference it in the body of the report.
Framework, Bash, and operating system version information
I am using Arch linux and bash 4.4.12. When I run ./go test, all tests pass except one:
✗ core/search-plugins: /plugins/ in _GO_ROOTDIR, _GO_SCRIPTS_DIR (pathological)
(in test file tests/core/search-plugins.bats, line 140)
`assert_failure "$test_plugins_dir/foo/bin/plugins/bar/bin/plugins" \' failed
output not equal to expected value:
expected: '/tmp/test rootdir/plugins/plugins/plugins/plugins/foo/bin/plugins/bar/bin/plugins
/tmp/test rootdir/plugins/plugins/plugins/plugins/foo/bin/plugins
/tmp/test rootdir/plugins/plugins/plugins/plugins'
actual: '/tmp/test rootdir/plugins/plugins/go: line 2: /home/plugins/vendor/go-script-bash/go-core.bash: No such file or directory
/tmp/test rootdir/plugins/plugins/go: line 17: @go: command not found'
The problem is that I have placed go-script-bash under /home/scripts/vendor and the line above converts the path home/plugins/vendorwhich does not exist.
Due diligence
Framework, Bash, and operating system version information
Description
I am using Arch linux and bash 4.4.12. When I run
./go test
, all tests pass except one:The culprit is line 8 in
search-plugins.bats
:The problem is that I have placed go-script-bash under
/home/scripts/vendor
and the line above converts the pathhome/plugins/vendor
which does not exist.What is the test supposed to test?