Skip to content

Commit 7c0d17a

Browse files
committed
UPSTREAM: <carry>: Push CSI suite initialization to updateTestFrameworkForTests
It logs, and the logs go right to stdout, where openshift-tests reads json from "k8s-tests-ext list" and "info".
1 parent e5060da commit 7c0d17a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

openshift-hack/cmd/k8s-tests-ext/provider.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ func initializeCommonTestFramework() error {
4040
testContext.MaxNodesToGather = 0
4141
testContext.KubeConfig = os.Getenv("KUBECONFIG")
4242

43-
// allow the CSI tests to access test data, but only briefly
44-
// TODO: ideally CSI would not use any of these test methods
45-
// var err error
46-
// exutil.WithCleanup(func() { err = initCSITests(dryRun) })
47-
// TODO: for now I'm only initializing CSI directly, but we probably need that
48-
// WithCleanup here as well
49-
if err := initCSITests(); err != nil {
50-
return err
51-
}
52-
5343
if ad := os.Getenv("ARTIFACT_DIR"); len(strings.TrimSpace(ad)) == 0 {
5444
os.Setenv("ARTIFACT_DIR", filepath.Join(os.TempDir(), "artifacts"))
5545
}
@@ -126,6 +116,16 @@ func updateTestFrameworkForTests(provider string) error {
126116
testContext.DumpLogsOnFailure = true
127117
testContext.ReportDir = os.Getenv("TEST_JUNIT_DIR")
128118

119+
// allow the CSI tests to access test data, but only briefly
120+
// TODO: ideally CSI would not use any of these test methods
121+
// var err error
122+
// exutil.WithCleanup(func() { err = initCSITests(dryRun) })
123+
// TODO: for now I'm only initializing CSI directly, but we probably need that
124+
// WithCleanup here as well
125+
if err := initCSITests(); err != nil {
126+
return err
127+
}
128+
129129
return nil
130130
}
131131

0 commit comments

Comments
 (0)