Skip to content

Commit

Permalink
chore: add rule for e2e repo condition (#1312)
Browse files Browse the repository at this point in the history
Add rule for e2e repo condition
  • Loading branch information
flacatus authored Aug 6, 2024
1 parent 4c97155 commit d66803b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ func RunE2ETests() error {
return nil
}

if openshiftJobSpec.Refs.Repo == "e2e-tests" {
if pr.RepoName == "e2e-tests" {

rctx.RepoName = openshiftJobSpec.Refs.Repo
rctx.RepoName = pr.RepoName
rctx.JobName = jobName
rctx.JobType = jobType

Expand Down Expand Up @@ -1302,9 +1302,9 @@ func CleanWorkload() error {

func runTests(labelsToRun string, junitReportFile string) error {

ginkgoArgs := []string{"-p", "--output-interceptor-mode=none",
"--timeout=90m", fmt.Sprintf("--output-dir=%s", artifactDir),
"--junit-report="+junitReportFile, "--label-filter="+labelsToRun}
ginkgoArgs := []string{"-p", "--output-interceptor-mode=none",
"--timeout=90m", fmt.Sprintf("--output-dir=%s", artifactDir),
"--junit-report=" + junitReportFile, "--label-filter=" + labelsToRun}

if os.Getenv("GINKGO_PROCS") != "" {
ginkgoArgs = append(ginkgoArgs, fmt.Sprintf("--procs=%s", os.Getenv("GINKGO_PROCS")))
Expand Down

0 comments on commit d66803b

Please sign in to comment.