forked from kata-containers/tests
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: don't call to flag.Parse() from init()
Since golang 1.13 packages that call flag.Parse during package initialization may cause tests to fail[1]. Add a new function named `KataInit` to initialize the tests and parse the command line, this function needs to be called as soon as possible, preferably from `TestMain`. [1] - https://golang.org/doc/go1.13#testing fixes kata-containers#2195 Signed-off-by: Julio Montes <[email protected]>
- Loading branch information
Julio Montes
committed
Mar 20, 2020
1 parent
65b6de7
commit 44ab7de
Showing
2 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters