Skip to content

Commit 96d103b

Browse files
Sort ui_tests to ensure they remain coherent across different jobs
1 parent 50f359c commit 96d103b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ EOF
346346
if [ $nb_parts -gt 0 ]; then
347347
echo "Splitting ui_test into $nb_parts parts (and running part $current_part)"
348348
find src/test/ui -type f -name '*.rs' -not -path "*/auxiliary/*" > ui_tests
349+
# To ensure it'll be always the same sub files, we sort the content.
350+
sort ui_tests -o ui_tests
349351
count=$((`wc -l < ui_tests` / $nb_parts))
350352
# We increment the number of tests by one because if this is an odd number, we would skip
351353
# one test.

0 commit comments

Comments
 (0)