We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f2d39 commit 4b58fbcCopy full SHA for 4b58fbc
tests/core/set-scripts-dir.bats
@@ -35,6 +35,13 @@ teardown() {
35
assert_failure "$expected"
36
}
37
38
+@test "$SUITE: produce an error if the script dir isn't a directory" {
39
+ rm -rf "$TEST_GO_SCRIPTS_DIR"
40
+ printf '' >"$TEST_GO_SCRIPTS_DIR"
41
+ run "$TEST_GO_SCRIPT"
42
+ assert_failure "ERROR: $TEST_GO_SCRIPTS_DIR is not a directory"
43
+}
44
+
45
@test "$SUITE: produce an error if the script dir can't be read or accessed" {
46
skip_if_cannot_trigger_file_permission_failure
47
0 commit comments