Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Less output in tests.

  • Loading branch information...
commit ffb66f2fd99f62b7131d142901f23ce43df0c5e2 1 parent 6c540f7
@AlekSi authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 integration_test/hook_for_test.go
View
10 integration_test/hook_for_test.go
@@ -53,7 +53,7 @@ func setupTest(c *C) {
filepath.Join(Wd, "../../../../../bin/"),
filepath.Join(Wd, "../../../../../nut/"),
} {
- c.Logf("%s", dir)
+ // c.Logf("Removing %s", dir)
c.Assert(os.RemoveAll(dir), IsNil)
}
}
@@ -75,8 +75,12 @@ func runCommand(c *C, dir, command string, args string, exitCode ...int) (stdout
err := cmd.Run()
stdout, stderr = strings.TrimSpace(o.String()), strings.TrimSpace(e.String())
c.Logf("%s: %s %s", dir, command, args)
- c.Logf("stdout: %s", stdout)
- c.Logf("stderr: %s", stderr)
+ if stdout != "" {
+ c.Logf("stdout: %s", stdout)
+ }
+ if stderr != "" {
+ c.Logf("stderr: %s", stderr)
+ }
if err == nil {
if expectedCode == 0 {
Please sign in to comment.
Something went wrong with that request. Please try again.