diff --git a/testscript/script_test.go b/testscript/script_test.go index 1ab2e776663983740822ad8806ede021fd64e648..1b61c9cc72f4038b174a7be5c59b26e97a2583b6 100644 --- a/testscript/script_test.go +++ b/testscript/script_test.go @@ -4,6 +4,7 @@ import ( "context" "flag" "fmt" + "os" "path/filepath" "testing" "time" @@ -23,6 +24,17 @@ func TestScript(t *testing.T) { t.Fatal(err) } + for _, f := range []string{ + "admin1", + "admin2", + "user1", + "user2", + } { + if err := os.Chmod(filepath.Join("./testdata/", f), 0o600); err != nil { + t.Fatal(err) + } + } + testscript.Run(t, testscript.Params{ Dir: "testdata/script", UpdateScripts: *update,