File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,21 +44,21 @@ runs:
44
44
# setup split type
45
45
if [ -n "${{ inputs.junit-path }}" ]; then
46
46
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 }'")
48
48
elif [ -n "${{ inputs.line-count }}" ]; then
49
49
echo "line-count set. Splitting based on test line count"
50
- SPLIT_BY="-line-count"
50
+ SPLIT_BY=( "-line-count")
51
51
else
52
52
echo "No split type arguments set. Using default"
53
- SPLIT_BY=""
53
+ SPLIT_BY=()
54
54
fi
55
55
56
- EXCLUDE_GLOB=""
56
+ EXCLUDE_GLOB=()
57
57
if [ -n "${{ inputs.exclude-glob }}" ]; then
58
- EXCLUDE_GLOB="-exclude-glob='${{ inputs.exclude-glob }}'"
58
+ EXCLUDE_GLOB=( "-exclude-glob='${{ inputs.exclude-glob }}'")
59
59
fi
60
60
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[@] })
62
62
63
63
echo $TESTS
64
64
You can’t perform that action at this time.
0 commit comments