diff --git a/testscript/testdata/nothing.txt b/testscript/testdata/nothing.txtar similarity index 100% rename from testscript/testdata/nothing.txt rename to testscript/testdata/nothing.txtar diff --git a/testscript/testdata/nothing/nothing.txt b/testscript/testdata/nothing/nothing.txtar similarity index 100% rename from testscript/testdata/nothing/nothing.txt rename to testscript/testdata/nothing/nothing.txtar diff --git a/testscript/testscript.go b/testscript/testscript.go index a04ca81d..f5300f09 100644 --- a/testscript/testscript.go +++ b/testscript/testscript.go @@ -244,6 +244,7 @@ func RunT(t T, p Params) { for _, file := range files { file := file name := strings.TrimSuffix(filepath.Base(file), ".txt") + name = strings.TrimSuffix(name, ".txtar") t.Run(name, func(t T) { t.Parallel() ts := &TestScript{