1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 02:23:24 +00:00

build: add -race flag to integration tester test_all

This commit is contained in:
Nick Craig-Wood
2024-01-24 11:25:47 +00:00
parent a947f75d3b
commit b3a1f66759
2 changed files with 4 additions and 0 deletions

View File

@@ -286,6 +286,9 @@ func (r *Run) MakeTestBinary() {
binaryName := r.BinaryName()
log.Printf("%s: Making test binary %q", r.Path, binaryName)
CmdLine := []string{"go", "test", "-c"}
if *race {
CmdLine = append(CmdLine, "-race")
}
if *dryRun {
log.Printf("Not executing: %v", CmdLine)
return