Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <[email protected]>
  • Loading branch information
CabinfeverB committed Dec 4, 2023
1 parent 9d1e86f commit b52466f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/ci-subtask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

# ./ci-subtask.sh <TOTAL_TASK_N> <TASK_INDEX>

if [[ $2 -gt 13 ]]; then
dirs=($(find ./client -iname "Makefile" -exec dirname {} \; | sort -u))
printf "%s " "${dirs[@]}"
elif [[ $2 -gt 10 ]]; then
if [[ $2 -gt 10 ]]; then
# Get integration test list.
makefile_dirs=($(find . -iname "Makefile" -exec dirname {} \; | sort -u))
submod_dirs=($(find . -iname "go.mod" -exec dirname {} \; | sort -u))
integration_tasks=$(comm -12 <(printf "%s\n" "${makefile_dirs[@]}") <(printf "%s\n" "${submod_dirs[@]}") | grep "./tests/integrations/*")
# Currently, we only have 3 integration tests, so we can hardcode the task index.
for t in ${integration_tasks[@]}; do
if [[ "$t" = "./tests/integrations/client" && "$2" = 11 ]]; then
printf "%s " "$t"
res=("./client")
res+=($t)
printf "%s " "${res[@]}"
break
elif [[ "$t" = "./tests/integrations/tso" && "$2" = 12 ]]; then
printf "%s " "$t"
Expand Down

0 comments on commit b52466f

Please sign in to comment.