Skip to content

Commit 4c495f2

Browse files
committed
rebalance integration tests to prevent travis timeout
1 parent cbf828a commit 4c495f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/travis/before_script.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ case $TEST_SUITE in
1313

1414
test_set_list=$(find testsuite/* -maxdepth 1 -mindepth 1 -type d | sort)
1515
test_set_count=$(printf "$test_set_list" | wc -l)
16-
test_set_size[1]=$(printf "%.0f" $(echo "$test_set_count*0.17" | bc)) #17%
17-
test_set_size[2]=$(printf "%.0f" $(echo "$test_set_count*0.27" | bc)) #27%
18-
test_set_size[3]=$((test_set_count-test_set_size[1]-test_set_size[2])) #56%
16+
test_set_size[1]=$(printf "%.0f" $(echo "$test_set_count*0.13" | bc)) #13%
17+
test_set_size[2]=$(printf "%.0f" $(echo "$test_set_count*0.30" | bc)) #30%
18+
test_set_size[3]=$((test_set_count-test_set_size[1]-test_set_size[2])) #55%
1919
echo "Total = ${test_set_count}; Batch #1 = ${test_set_size[1]}; Batch #2 = ${test_set_size[2]}; Batch #3 = ${test_set_size[3]};";
2020

2121
echo "==> preparing integration testsuite on index $INTEGRATION_INDEX with set size of ${test_set_size[$INTEGRATION_INDEX]}"

0 commit comments

Comments
 (0)