e2e_node: cleanup entrypoint

This commit is contained in:
Danielle Lancashire 2021-10-06 13:35:43 +02:00
parent 7dbbfe38e1
commit 26980cf701

View File

@ -168,12 +168,13 @@ func TestE2eNode(t *testing.T) {
}
return
}
// If run-services-mode is not specified, run test.
// We're not running in a special mode so lets run tests.
gomega.RegisterFailHandler(ginkgo.Fail)
reporters := []ginkgo.Reporter{}
reportDir := framework.TestContext.ReportDir
if reportDir != "" {
// Create the directory if it doesn't already exists
// Create the directory if it doesn't already exist
if err := os.MkdirAll(reportDir, 0755); err != nil {
klog.Errorf("Failed creating report directory: %v", err)
} else {
@ -294,8 +295,6 @@ func waitForNodeReady() {
}
// updateTestContext updates the test context with the node name.
// TODO(random-liu): Using dynamic kubelet configuration feature to
// update test context with node configuration.
func updateTestContext() error {
setExtraEnvs()
updateImageAllowList()