(path string)
| 330 | } |
| 331 | |
| 332 | func (z *ZTest) ShouldSkip(path string) string { |
| 333 | switch { |
| 334 | case z.Script != "" && path == "": |
| 335 | return "script test on in-process run" |
| 336 | case z.SPQ != "" && path != "": |
| 337 | return "in-process test on script run" |
| 338 | case z.Skip != "": |
| 339 | return z.Skip |
| 340 | case z.Tag != "" && z.Tag != os.Getenv("ZTEST_TAG"): |
| 341 | return fmt.Sprintf("tag %q does not match ZTEST_TAG=%q", z.Tag, os.Getenv("ZTEST_TAG")) |
| 342 | } |
| 343 | return "" |
| 344 | } |
| 345 | |
| 346 | func (z *ZTest) RunScript(ctx context.Context, shellPath, testDir string, tempDir func() string) error { |
| 347 | if err := z.check(); err != nil { |
no outgoing calls