From 3e1c43dc6f09315be8f7364c41b4917ec2ac254c Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 12 Aug 2024 14:17:27 +0300 Subject: [PATCH] test/e2e: simplify TestMain Drop unneeded bits. --- test/e2e/e2e_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index ea34e2e9f1..e2a9fe6ad6 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -29,7 +29,6 @@ import ( "k8s.io/klog/v2" "k8s.io/kubernetes/test/e2e/framework" "k8s.io/kubernetes/test/e2e/framework/config" - "k8s.io/kubernetes/test/e2e/framework/testfiles" ) var ( @@ -56,15 +55,6 @@ func TestMain(m *testing.M) { framework.AfterReadingAllFlags(&framework.TestContext) - // TODO: Deprecating repo-root over time... instead just use gobindata_util.go , see #23987. - // Right now it is still needed, for example by - // test/e2e/framework/ingress/ingress_utils.go - // for providing the optional secret.yaml file and by - // test/e2e/framework/util.go for cluster/log-dump. - if framework.TestContext.RepoRoot != "" { - testfiles.AddFileSource(testfiles.RootFileSource{Root: framework.TestContext.RepoRoot}) - } - os.Exit(m.Run()) }