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

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

Issue 1129863010: Reset chromium checkout before syncing (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Initial upload Created 5 years, 7 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/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_benchmark/main.go
diff --git a/ct/go/worker_scripts/run_benchmark/main.go b/ct/go/worker_scripts/run_benchmark/main.go
index ac9465fb40c5be52a0ce581f7f7f0cd70a3a4769..a25a00b04d40a7f99877acb2b526d01696c6538a 100644
--- a/ct/go/worker_scripts/run_benchmark/main.go
+++ b/ct/go/worker_scripts/run_benchmark/main.go
@@ -56,6 +56,11 @@ func main() {
browserArgs := *browserExtraArgs
repeats := *repeatBenchmark
+ // Reset the local chromium checkout.
+ if err := util.ResetCheckout(util.ChromiumSrcDir); err != nil {
+ glog.Errorf("Could not reset %s: %s", util.ChromiumSrcDir, err)
+ return
+ }
// Sync the local chromium checkout.
if err := util.SyncDir(util.ChromiumSrcDir); err != nil {
glog.Errorf("Could not gclient sync %s: %s", util.ChromiumSrcDir, err)
« no previous file with comments | « ct/go/worker_scripts/fix_archives/main.go ('k') | ct/go/worker_scripts/run_chromium_perf/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698