mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 21:38:23 +00:00
Merge pull request #1835 from marquiz/devel/e2e
test/e2e: simplify TestMain
This commit is contained in:
commit
a851aae914
1 changed files with 0 additions and 10 deletions
|
@ -29,7 +29,6 @@ import (
|
||||||
"k8s.io/klog/v2"
|
"k8s.io/klog/v2"
|
||||||
"k8s.io/kubernetes/test/e2e/framework"
|
"k8s.io/kubernetes/test/e2e/framework"
|
||||||
"k8s.io/kubernetes/test/e2e/framework/config"
|
"k8s.io/kubernetes/test/e2e/framework/config"
|
||||||
"k8s.io/kubernetes/test/e2e/framework/testfiles"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -56,15 +55,6 @@ func TestMain(m *testing.M) {
|
||||||
|
|
||||||
framework.AfterReadingAllFlags(&framework.TestContext)
|
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())
|
os.Exit(m.Run())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue