open-nomad/e2e/framework
Mahmood Ali f5bd51ec30 e2e: avoid parsing Args in pkg init
Golang 1.13 introduced a change in test flag parsing:

> testing
> ...
> Testing flags are now registered in the new Init function, which is invoked by the generated main function for the test. As a result, testing flags are now only registered when running a test binary, and packages that call flag.Parse during package initialization may cause tests to fail.

https://golang.org/doc/go1.13#testing

Here, we ensure that e2e framework parsing occur in TestMain, by only
initializing Framework at Run invocation.
2020-03-02 14:13:54 -05:00
..
provisioning e2e: add --quiet flag to s3 copy to reduce log spam (#7085) 2020-02-06 09:24:20 -05:00
case.go e2e: update framework to allow deploying Nomad (#6969) 2020-01-22 08:48:52 -05:00
context.go e2e/framework: code review fixes 2018-07-24 12:33:30 -04:00
doc.go e2e/framework: code review fixes 2018-07-24 12:33:30 -04:00
framework.go e2e: avoid parsing Args in pkg init 2020-03-02 14:13:54 -05:00
interfaces.go e2e: update framework to allow deploying Nomad (#6969) 2020-01-22 08:48:52 -05:00