mirror of
https://github.com/containous/traefik.git
synced 2025-10-16 23:33:20 +03:00
Simplify acme e2e tests.
This commit is contained in:
committed by
Traefiker Bot
parent
56fe023a12
commit
9e012a6b54
@@ -22,6 +22,7 @@ import (
|
||||
var integration = flag.Bool("integration", false, "run integration tests")
|
||||
var container = flag.Bool("container", false, "run container integration tests")
|
||||
var host = flag.Bool("host", false, "run host integration tests")
|
||||
var showLog = flag.Bool("tlog", false, "always show Traefik logs")
|
||||
|
||||
func Test(t *testing.T) {
|
||||
check.TestingT(t)
|
||||
@@ -114,7 +115,7 @@ func (s *BaseSuite) cmdTraefik(args ...string) (*exec.Cmd, *bytes.Buffer) {
|
||||
func (s *BaseSuite) traefikCmd(args ...string) (*exec.Cmd, func(*check.C)) {
|
||||
cmd, out := s.cmdTraefik(args...)
|
||||
return cmd, func(c *check.C) {
|
||||
if c.Failed() {
|
||||
if c.Failed() || *showLog {
|
||||
s.displayTraefikLog(c, out)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user