diff --git a/testrunner.go b/testrunner.go index 3ceb752..994ea39 100644 --- a/testrunner.go +++ b/testrunner.go @@ -54,8 +54,13 @@ func worker(path, output chan string, wg *sync.WaitGroup) { func run(path string, wg *sync.WaitGroup) string { defer wg.Done() + localParts := make([]string, len(parts)) + for i, part := range parts { + localParts[i] = part + } + start := time.Now() - cmdparts := append(parts[:], path) + cmdparts := append(localParts, path) cmd := exec.Cmd{ Path: parts[0],