test: Set provider if --provider passed with run `-f -`
The caller is responsible for setting the right options on both
parts of the segment, but assume that we don't need suite info
by default in `-f -` mode.
@@ -247,6 +247,9 @@ func (opt *runOptions) SelectSuite(suites testSuites, args []string) (*testSuite
return &suites[i], nil
}
}
+ if len(opt.Provider) > 0 {
+ return &testSuite{TestSuite: *suite, PreSuite: suiteWithProviderPreSuite}, nil
+ }
return &testSuite{TestSuite: *suite}, nil
}
