Skip to content

Commit

Permalink
Merge pull request #16 from supertokens/feat/enable_rerunning_failed_…
Browse files Browse the repository at this point in the history
…tests

ci: make test script exit early in ci if there are no tests to rerun
  • Loading branch information
rishabhpoddar authored Oct 29, 2024
2 parents a7e64b5 + 5c07b32 commit e0c27f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ gradle.projectsEvaluated {
}
}
}
}
}
2 changes: 1 addition & 1 deletion startTestEnv
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ else
circleci tests run --command=">classnames.txt xargs echo" --verbose --split-by=timings --timings-type=classname

#if this is a re-run and it is a parallel run that does not have tests to run, halt execution of this parallel run
[ -s classnames.txt ] || circleci-agent step halt
[ -s classnames.txt ] || (circleci-agent step halt && exit 0)

GRADLE_ARGS=$(cat classnames.txt | awk '{for (i=1; i<=NF; i++) print "--tests",$i}')
echo "Prepared arguments for Gradle: $GRADLE_ARGS"
Expand Down

0 comments on commit e0c27f1

Please sign in to comment.