aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/runtest/run.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go
index 46a3f09cb..e380ad490 100644
--- a/pkg/runtest/run.go
+++ b/pkg/runtest/run.go
@@ -59,6 +59,7 @@ type Context struct {
LogFunc func(text string)
Retries int // max number of test retries to deal with flaky tests
Verbose bool
+ Tests string // prefix to match test file names
}
func (ctx *Context) log(msg string, args ...interface{}) {
@@ -172,6 +173,9 @@ func (ctx *Context) generatePrograms(progs chan *RunRequest) error {
if strings.HasSuffix(file.Name(), ".swp") {
continue
}
+ if !strings.HasPrefix(file.Name(), ctx.Tests) {
+ continue
+ }
p, requires, results, err := ctx.parseProg(file.Name())
if err != nil {
return err