Change summary
testscript/script_test.go | 12 ++++++++++++
1 file changed, 12 insertions(+)
Detailed changes
@@ -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,