Merge pull request #12214 from ethereum/parallelize-external-tests

Parallelize external tests
This commit is contained in:
Kamil Śliwak
2021-11-18 17:27:57 +01:00
committed by GitHub
9 changed files with 82 additions and 22 deletions
+22
View File
@@ -208,3 +208,25 @@ function safe_kill
kill -9 "$PID"
fi
}
function circleci_select_steps
{
local all_steps="$1"
(( $# == 1 )) || assertFail
if (( CIRCLE_NODE_TOTAL )) && (( CIRCLE_NODE_TOTAL > 1 ))
then
echo "$all_steps" | circleci tests split | xargs
else
echo "$all_steps" | xargs
fi
}
function circleci_step_selected
{
local selected_steps="$1"
local step="$2"
[[ $step != *" "* ]] || assertFail "Step names must not contain spaces."
[[ " $selected_steps " == *" $step "* ]] || return 1
}