File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,21 +44,21 @@ runs:
4444 # setup split type
4545 if [ -n "${{ inputs.junit-path }}" ]; then
4646 echo "junit-path set. Splitting based on JUnit timings"
47- SPLIT_BY="-junit -junit-path=${{ inputs.junit-path }}"
47+ SPLIT_BY=( "-junit" " -junit-path=' ${{ inputs.junit-path }'")
4848 elif [ -n "${{ inputs.line-count }}" ]; then
4949 echo "line-count set. Splitting based on test line count"
50- SPLIT_BY="-line-count"
50+ SPLIT_BY=( "-line-count")
5151 else
5252 echo "No split type arguments set. Using default"
53- SPLIT_BY=""
53+ SPLIT_BY=()
5454 fi
5555
56- EXCLUDE_GLOB=""
56+ EXCLUDE_GLOB=()
5757 if [ -n "${{ inputs.exclude-glob }}" ]; then
58- EXCLUDE_GLOB="-exclude-glob='${{ inputs.exclude-glob }}'"
58+ EXCLUDE_GLOB=( "-exclude-glob='${{ inputs.exclude-glob }}'")
5959 fi
6060
61- TESTS=$(./split_tests ${SPLIT_BY} -split-index=${{ inputs.split-index }} -split-total=${{ inputs.split-total }} -glob='${{ inputs.glob }}' ${EXCLUDE_GLOB})
61+ TESTS=$(./split_tests ${SPLIT_BY[@] } -split-index=${{ inputs.split-index }} -split-total=${{ inputs.split-total }} -glob='${{ inputs.glob }}' ${EXCLUDE_GLOB[@] })
6262
6363 echo $TESTS
6464
You can’t perform that action at this time.
0 commit comments