Commit ef6f3e0a authored by Patrick Ohly's avatar Patrick Ohly

test/e2e: fix `ginkgo ./test/e2e`

When running ginkgo directly against the source code of the test suite instead of using some pre-compiled e2e.test binary, ginkgo no longer recognized that it runs a Ginkgo testsuite, which broke "-focus" and "-p". By re-inserting the magic strings that ginkgo looks for into a comment, we can restore the desired behavior without affecting the code. Fixes: #74827
parent 7514c49e
......@@ -22,6 +22,12 @@ import (
"os"
"testing"
// Never, ever remove the line with "/ginkgo". Without it,
// the ginkgo test runner will not detect that this
// directory contains a Ginkgo test suite.
// See https://github.com/kubernetes/kubernetes/issues/74827
// "github.com/onsi/ginkgo"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/framework/testfiles"
"k8s.io/kubernetes/test/e2e/framework/viperconfig"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment