mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
e2e_node: cleanup entrypoint
This commit is contained in:
parent
7dbbfe38e1
commit
26980cf701
@ -168,12 +168,13 @@ func TestE2eNode(t *testing.T) {
|
|||||||
}
|
}
|
||||||
return
|
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)
|
gomega.RegisterFailHandler(ginkgo.Fail)
|
||||||
reporters := []ginkgo.Reporter{}
|
reporters := []ginkgo.Reporter{}
|
||||||
reportDir := framework.TestContext.ReportDir
|
reportDir := framework.TestContext.ReportDir
|
||||||
if 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 {
|
if err := os.MkdirAll(reportDir, 0755); err != nil {
|
||||||
klog.Errorf("Failed creating report directory: %v", err)
|
klog.Errorf("Failed creating report directory: %v", err)
|
||||||
} else {
|
} else {
|
||||||
@ -294,8 +295,6 @@ func waitForNodeReady() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// updateTestContext updates the test context with the node name.
|
// 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 {
|
func updateTestContext() error {
|
||||||
setExtraEnvs()
|
setExtraEnvs()
|
||||||
updateImageAllowList()
|
updateImageAllowList()
|
||||||
|
Loading…
Reference in New Issue
Block a user