Skip to content

Commit af3cb36

Browse files
committed
vars: Fix test breakage in #130 due to _GO_ROOTDIR
In the previous commit for PR #130, in order to allow plugins to have their own scoped `_GO_ROOTDIR`, it was necessary to remove its `readonly` constraint. I'd forgotten to update `tests/vars.bats` to remove the `-r` flag in the expected output.
1 parent eae25dc commit af3cb36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/vars.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ quotify_expected() {
4949
"declare -x _GO_KCOV_DIR=\"$_GO_KCOV_DIR\""
5050
"declare -- _GO_PLUGINS_DIR=\"$TEST_GO_PLUGINS_DIR\""
5151
'declare -a _GO_PLUGINS_PATHS=()'
52-
"declare -rx _GO_ROOTDIR=\"$TEST_GO_ROOTDIR\""
52+
"declare -x _GO_ROOTDIR=\"$TEST_GO_ROOTDIR\""
5353
"declare -rx _GO_SCRIPT=\"$TEST_GO_SCRIPT\""
5454
"declare -- _GO_SCRIPTS_DIR=\"$TEST_GO_SCRIPTS_DIR\""
5555
"declare -a _GO_SEARCH_PATHS=(${search_paths[*]})"
@@ -113,7 +113,7 @@ quotify_expected() {
113113
"declare -x _GO_KCOV_DIR=\"$_GO_KCOV_DIR\""
114114
"declare -- _GO_PLUGINS_DIR=\"$TEST_GO_PLUGINS_DIR\""
115115
"declare -a _GO_PLUGINS_PATHS=(${plugins_paths[*]})"
116-
"declare -rx _GO_ROOTDIR=\"$TEST_GO_ROOTDIR\""
116+
"declare -x _GO_ROOTDIR=\"$TEST_GO_ROOTDIR\""
117117
"declare -rx _GO_SCRIPT=\"$TEST_GO_SCRIPT\""
118118
"declare -- _GO_SCRIPTS_DIR=\"$TEST_GO_SCRIPTS_DIR\""
119119
"declare -a _GO_SEARCH_PATHS=(${search_paths[*]})"

0 commit comments

Comments
 (0)