diff --git a/fstest/run.go b/fstest/run.go index 4ffb33692..2f492d4db 100644 --- a/fstest/run.go +++ b/fstest/run.go @@ -60,11 +60,16 @@ type Run struct { Logf, Fatalf func(text string, args ...any) } +// ResetRun re-reads the command line arguments into the global run. +func ResetRun() { + oneRun = newRun() +} + // TestMain drives the tests func TestMain(m *testing.M) { flag.Parse() if !*Individual { - oneRun = newRun() + ResetRun() } rc := m.Run() if !*Individual {