File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed
Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 5151
5252{test_env}
5353
54- if [ -n "${{TEST_SHARD_STATUS_FILE+x}}" ]; then
55- export SHARD_SUITE_CODE_PATHS={shard_suite_code_paths}
56- FILTER=$({erlang_home}/bin/escript \\
57- $TEST_SRCDIR/$TEST_WORKSPACE/{shard_suite} \\
58- -{sharding_method} \\
59- {suite_name} ${{TEST_SHARD_INDEX}} ${{TEST_TOTAL_SHARDS}})
60- else
61- FILTER="-suite {suite_name}"
62- fi
63-
6454if [ -n "${{FOCUS+x}}" ]; then
65- if [ 0 -eq ${{TEST_SHARD_INDEX}} ]; then
66- echo "Using shard index 0 to run 'FOCUS'ed tests"
55+ if [ -n "${{TEST_SHARD_STATUS_FILE+x}}" ]; then
56+ if [ 0 -eq ${{TEST_SHARD_INDEX}} ]; then
57+ echo "Using shard index 0 to run FOCUS'ed tests"
58+ FILTER="-suite {suite_name} ${{FOCUS}}"
59+ else
60+ echo "Skipping shard ${{TEST_SHARD_INDEX}} as FOCUS is set"
61+ exit 0
62+ fi
63+ else
6764 FILTER="-suite {suite_name} ${{FOCUS}}"
65+ fi
66+ else
67+ if [ -n "${{TEST_SHARD_STATUS_FILE+x}}" ]; then
68+ export SHARD_SUITE_CODE_PATHS={shard_suite_code_paths}
69+ FILTER=$({erlang_home}/bin/escript \\
70+ $TEST_SRCDIR/$TEST_WORKSPACE/{shard_suite} \\
71+ -{sharding_method} \\
72+ {suite_name} ${{TEST_SHARD_INDEX}} ${{TEST_TOTAL_SHARDS}})
6873 else
69- echo "Skipping shard ${{TEST_SHARD_INDEX}} as 'FOCUS' is set"
70- exit 0
74+ FILTER="-suite {suite_name}"
7175 fi
7276fi
7377
You can’t perform that action at this time.
0 commit comments