Skip to content

Commit 73667b5

Browse files
author
OpenShift Bot
authored
Merge pull request #11001 from smarterclayton/debug_tests
Merged by openshift-bot
2 parents 2124c01 + 99ba1e1 commit 73667b5

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

test/extended/util/framework.go

-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
"k8s.io/kubernetes/pkg/util/sets"
3131
"k8s.io/kubernetes/pkg/util/uuid"
3232
"k8s.io/kubernetes/pkg/util/wait"
33-
e2e "k8s.io/kubernetes/test/e2e/framework"
3433

3534
buildapi "github.com/openshift/origin/pkg/build/api"
3635
"github.com/openshift/origin/pkg/client"
@@ -40,8 +39,6 @@ import (
4039
"github.com/openshift/origin/pkg/util/namer"
4140
)
4241

43-
var TestContext e2e.TestContextType
44-
4542
const pvPrefix = "pv-"
4643

4744
// WaitForOpenShiftNamespaceImageStreams waits for the standard set of imagestreams to be imported

test/extended/util/test.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package util
22

33
import (
4-
rflag "flag"
54
"fmt"
65
"os"
76
"path"
@@ -34,6 +33,8 @@ var (
3433
quiet bool
3534
)
3635

36+
var TestContext *e2e.TestContextType = &e2e.TestContext
37+
3738
// init initialize the extended testing suite.
3839
// You can set these environment variables to configure extended tests:
3940
// KUBECONFIG - Path to kubeconfig containing embedded authinfo
@@ -43,6 +44,9 @@ func InitTest() {
4344
// Add hooks to skip all kubernetes or origin tests
4445
ginkgo.BeforeEach(checkSuiteSkips)
4546

47+
e2e.RegisterCommonFlags()
48+
e2e.RegisterClusterFlags()
49+
4650
extendedOutputDir := filepath.Join(os.TempDir(), "openshift-extended-tests")
4751
os.MkdirAll(extendedOutputDir, 0777)
4852

@@ -73,15 +77,10 @@ func InitTest() {
7377
}
7478

7579
quiet = os.Getenv("TEST_OUTPUT_QUIET") == "true"
76-
//flag.StringVar(&TestContext.KubeConfig, clientcmd.RecommendedConfigPathFlag, KubeConfigPath(), "Path to kubeconfig containing embedded authinfo.")
7780
flag.StringVar(&TestContext.OutputDir, "extended-tests-output-dir", extendedOutputDir, "Output directory for interesting/useful test data, like performance data, benchmarks, and other metrics.")
78-
rflag.StringVar(&config.GinkgoConfig.FocusString, "focus", "", "DEPRECATED: use --ginkgo.focus")
7981

8082
// Ensure that Kube tests run privileged (like they do upstream)
8183
TestContext.CreateTestingNS = createTestingNS
82-
83-
// Override the default Kubernetes E2E configuration
84-
e2e.TestContext = TestContext
8584
}
8685

8786
func ExecuteTest(t *testing.T, suite string) {

0 commit comments

Comments
 (0)