From 1d6194d8a5f863fe4bc8667286573f32568f1726 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Thu, 7 Apr 2016 09:08:37 -0700 Subject: [PATCH] feat(e2e): add some instrumentation for commands --- test/e2e/command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/command.go b/test/e2e/command.go index 5980d72d4..fbe22ff9a 100644 --- a/test/e2e/command.go +++ b/test/e2e/command.go @@ -9,6 +9,7 @@ import ( "regexp" "strings" "testing" + "time" ) type Cmd struct { @@ -32,7 +33,9 @@ func (h *Cmd) exec() error { cmd.Stderr = &h.stderr h.t.Logf("Executing command: %s", h) + start := time.Now() h.status = cmd.Run() + h.t.Logf("Finished in %v", time.Since(start)) if h.stdout.Len() > 0 { h.t.Logf("standard output:\n%s", h.stdout.String())