Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Unified Diff: ct/go/worker_scripts/run_chromium_perf/main.go

Issue 1872763002: [CT] Split benchmarkArgs around one or more consecutive white spaces (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Initial upload Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ct/go/worker_scripts/fix_archives/main.go ('k') | ct/go/worker_scripts/run_chromium_perf_swarming/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ct/go/worker_scripts/run_chromium_perf/main.go
diff --git a/ct/go/worker_scripts/run_chromium_perf/main.go b/ct/go/worker_scripts/run_chromium_perf/main.go
index 934727a9f384cf071cf6092a1a93542ba11bab7a..8ceea37a4b6372b526069a98fdb427e6b0b24a83 100644
--- a/ct/go/worker_scripts/run_chromium_perf/main.go
+++ b/ct/go/worker_scripts/run_chromium_perf/main.go
@@ -316,7 +316,7 @@ func runBenchmark(fileInfoName, pathToPagesets, pathToPyFiles, localOutputDir, c
}
// Split benchmark args if not empty and append to args.
if *benchmarkExtraArgs != "" {
- for _, benchmarkArg := range strings.Split(*benchmarkExtraArgs, " ") {
+ for _, benchmarkArg := range strings.Fields(*benchmarkExtraArgs) {
args = append(args, benchmarkArg)
}
}
« no previous file with comments | « ct/go/worker_scripts/fix_archives/main.go ('k') | ct/go/worker_scripts/run_chromium_perf_swarming/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698