Skip to content

Commit

Permalink
Fix issue 28445
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajalakshmi-Girish committed Dec 13, 2023
1 parent 0c9e629 commit 6f251db
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pkg/test/ginkgo/cmd_runsuite.go
Expand Up @@ -197,17 +197,6 @@ func (o *GinkgoRunSuiteOptions) Run(suite *TestSuite, junitSuiteName string, mon

fmt.Fprintf(o.Out, "found %d filtered tests\n", len(tests))

restConfig, err := clusterinfo.GetMonitorRESTConfig()
if err != nil {
return err
}

// skip tests due to newer k8s
tests, err = o.filterOutRebaseTests(restConfig, tests)
if err != nil {
return err
}

count := o.Count
if count == 0 {
count = suite.Count
Expand Down Expand Up @@ -239,6 +228,17 @@ func (o *GinkgoRunSuiteOptions) Run(suite *TestSuite, junitSuiteName string, mon
return nil
}

restConfig, err := clusterinfo.GetMonitorRESTConfig()
if err != nil {
return err
}

// skip tests due to newer k8s
tests, err = o.filterOutRebaseTests(restConfig, tests)
if err != nil {
return err
}

if len(o.JUnitDir) > 0 {
if _, err := os.Stat(o.JUnitDir); err != nil {
if !os.IsNotExist(err) {
Expand Down

0 comments on commit 6f251db

Please sign in to comment.