mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
adapt e2e test paths in parallel execution script
This commit is contained in:
parent
2ee461748f
commit
85b44d97e6
@ -8,10 +8,10 @@ CUR_JOB=$(expr $1 - 1)
|
|||||||
MAX_JOBS=$2
|
MAX_JOBS=$2
|
||||||
|
|
||||||
# Features
|
# Features
|
||||||
FEATURE_LIST=( $(find cypress/integration/ -maxdepth 1 -name "*.feature") )
|
FEATURE_LIST=( $(find cypress/e2e/ -maxdepth 1 -name "*.feature") )
|
||||||
|
|
||||||
# Calculation
|
# Calculation
|
||||||
MAX_FEATURES=$(find cypress/integration/ -maxdepth 1 -name "*.feature" -print | wc -l)
|
MAX_FEATURES=$(find cypress/e2e/ -maxdepth 1 -name "*.feature" -print | wc -l)
|
||||||
# adds overhead features to the first jobs
|
# adds overhead features to the first jobs
|
||||||
if [[ $CUR_JOB -lt $(expr ${MAX_FEATURES} % ${MAX_JOBS}) ]]
|
if [[ $CUR_JOB -lt $(expr ${MAX_FEATURES} % ${MAX_JOBS}) ]]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user