File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
openshift-hack/cmd/k8s-tests-ext Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -40,16 +40,6 @@ func initializeCommonTestFramework() error {
40
40
testContext .MaxNodesToGather = 0
41
41
testContext .KubeConfig = os .Getenv ("KUBECONFIG" )
42
42
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
-
53
43
if ad := os .Getenv ("ARTIFACT_DIR" ); len (strings .TrimSpace (ad )) == 0 {
54
44
os .Setenv ("ARTIFACT_DIR" , filepath .Join (os .TempDir (), "artifacts" ))
55
45
}
@@ -126,6 +116,16 @@ func updateTestFrameworkForTests(provider string) error {
126
116
testContext .DumpLogsOnFailure = true
127
117
testContext .ReportDir = os .Getenv ("TEST_JUNIT_DIR" )
128
118
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
+
129
129
return nil
130
130
}
131
131
You can’t perform that action at this time.
0 commit comments