Prechádzať zdrojové kódy

[integration-cli] ensureFrozenImages here too

Checks + pulls down the frozen images in the integration-cli
tests too. Fixes an issue where they wouldn't be pulled if running
against just integration-cli tests, e.g. through TESTFLAGS

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
Christopher Jones 7 rokov pred
rodič
commit
c95b17e598
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      integration-cli/check_test.go

+ 6 - 0
integration-cli/check_test.go

@@ -60,6 +60,12 @@ func init() {
 
 
 func TestMain(m *testing.M) {
 func TestMain(m *testing.M) {
 	dockerBinary = testEnv.DockerBinary()
 	dockerBinary = testEnv.DockerBinary()
+	err := ienv.EnsureFrozenImagesLinux(&testEnv.Execution)
+	if err != nil {
+		fmt.Println(err)
+		os.Exit(1)
+	}
+
 	testEnv.Print()
 	testEnv.Print()
 	os.Exit(m.Run())
 	os.Exit(m.Run())
 }
 }