From 3ec386123623e89db9d05c308354bd038e3a026a Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Tue, 29 Oct 2024 02:46:42 +0100 Subject: [PATCH] test: try and improve flaky tests --- .circleci/doTests.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.circleci/doTests.sh b/.circleci/doTests.sh index 607933f38..6404af168 100755 --- a/.circleci/doTests.sh +++ b/.circleci/doTests.sh @@ -163,20 +163,7 @@ do cd ../ echo $SUPERTOKENS_API_KEY > apiPassword - # Get list of classnames of tests that should run on this node. - circleci tests glob "supertokens-*/src/test/**/*.java" | cut -c 1- | sed 's@/@.@g' | sed 's/.\{5\}$//' | - sed 's/^.*io\.supertokens/io.supertokens/' | - 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 - - GRADLE_ARGS=$(cat classnames.txt | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') - echo "Prepared arguments for Gradle: $GRADLE_ARGS" - - # TODO: remove before merging, this is here to make testing the scripts quicker - sed -i -e "s/\.\/gradlew test/\.\/gradlew test \$GRADLE_ARGS/" startTestEnv - GRADLE_ARGS=$GRADLE_ARGS ./startTestingEnv --cicd + ./startTestingEnv --cicd if [[ $? -ne 0 ]] then