Skip to content

Commit

Permalink
test/e2e: simplify TestMain
Browse files Browse the repository at this point in the history
Drop unneeded bits.
  • Loading branch information
marquiz committed Aug 12, 2024
1 parent 6af374f commit 3e1c43d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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())
}

Expand Down

0 comments on commit 3e1c43d

Please sign in to comment.