Skip to content

Commit

Permalink
Calculated new proportions for test workers. Small fixes in test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoDelAssembly committed Apr 10, 2019
1 parent e4a9318 commit 0b3d150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis/spec_runner.rc
Expand Up @@ -2,4 +2,4 @@
# PLEASE USE FRACTIONAL NUMBERS. Example: (1/10 3/10 1/2 1/10 1/10)
# Make sure you specify as much items as there are workers.

#TEST_WORKERS_PROPORTIONS=(1/10 3/10 1/2 1/10 1/10)
TEST_WORKERS_PROPORTIONS=(94/508 51/508 47/508 137/508 179/508)
4 changes: 2 additions & 2 deletions .travis/spec_runner.sh
Expand Up @@ -17,7 +17,7 @@ BEGIN_INDEX=1

for ((i=0; i<TEST_WORKERS; i++))
do
END_INDEX=$[$BEGIN_INDEX + $SPEC_COUNT * ${TEST_WORKERS_PROPORTIONS[i]}]
END_INDEX=$[$BEGIN_INDEX + $SPEC_COUNT * ${TEST_WORKERS_PROPORTIONS[i]} - 1]

SPECS_TO_RUN[i]=$(echo $SPEC_FILES | cut -d " " -f $BEGIN_INDEX-$END_INDEX)

Expand All @@ -32,7 +32,7 @@ report() {
END_TIME=$(date +%s)

echo "[TEST_WORKER=$TEST_WORKER Runtime] $[$END_TIME - $START_TIME]"
echo "[TEST_WORKER=$TEST_WORKER Proportion] $[$(echo $SPECS_TO_RUN | wc -w)]/$SPEC_COUNT"
echo "[TEST_WORKER=$TEST_WORKER Proportion] $[$(echo ${SPECS_TO_RUN[$TEST_WORKER]} | wc -w)]/$SPEC_COUNT"
}

START_TIME=$(date +%s)
Expand Down

0 comments on commit 0b3d150

Please sign in to comment.