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

Unified Diff: fuzzer/go/fuzzer/main.go

Issue 1300273002: Reland of Add a library for running external commands, providing timeouts and test injection. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Fix squashWriters for struct arguments. Created 5 years, 4 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/util/util.go ('k') | go/exec/exec.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzzer/go/fuzzer/main.go
diff --git a/fuzzer/go/fuzzer/main.go b/fuzzer/go/fuzzer/main.go
index affd5c82796202c43828507302a6443ad0cf7d15..aa89eb3c751665b2a1941888cbde9b9aaa683d14 100644
--- a/fuzzer/go/fuzzer/main.go
+++ b/fuzzer/go/fuzzer/main.go
@@ -20,6 +20,7 @@ import (
"go.skia.org/infra/fuzzer/go/generator"
"go.skia.org/infra/go/auth"
"go.skia.org/infra/go/common"
+ "go.skia.org/infra/go/exec"
"go.skia.org/infra/go/util"
)
@@ -176,7 +177,7 @@ func runFuzz(hash string) error {
glog.Infof("Running gyp for %s...", hash)
cmd := fmt.Sprintf("./gyp_skia gyp/%s.gyp gyp/most.gyp -Dskia_mesa=1", hash)
- message, err := util.DoCmd(cmd)
+ message, err := exec.RunSimple(cmd)
if err != nil {
glog.Fatalf("Couldn't run gyp: %s", err)
}
@@ -184,13 +185,13 @@ func runFuzz(hash string) error {
glog.Infof("Running ninja for %s...", hash)
cmd = fmt.Sprintf("ninja -C %s/out/Release_Developer %s", skiaDir, hash)
- message, err = util.DoCmd(cmd)
+ message, err = exec.RunSimple(cmd)
if err != nil {
glog.Fatalf("Couldn't run ninja: %s", err)
}
cmd = fmt.Sprintf("%s/out/Release_Developer/%s --out %s/%s", skiaDir, hash, cacheDir, hash)
- message, err = util.DoCmd(cmd)
+ message, err = exec.RunSimple(cmd)
glog.Infof(message)
« no previous file with comments | « ct/go/util/util.go ('k') | go/exec/exec.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698