Sort ui_tests to ensure they remain coherent across different jobs
This commit is contained in:
parent
50f359c8a1
commit
96d103b9f9
1 changed files with 2 additions and 0 deletions
2
test.sh
2
test.sh
|
@ -346,6 +346,8 @@ EOF
|
|||
if [ $nb_parts -gt 0 ]; then
|
||||
echo "Splitting ui_test into $nb_parts parts (and running part $current_part)"
|
||||
find src/test/ui -type f -name '*.rs' -not -path "*/auxiliary/*" > ui_tests
|
||||
# To ensure it'll be always the same sub files, we sort the content.
|
||||
sort ui_tests -o ui_tests
|
||||
count=$((`wc -l < ui_tests` / $nb_parts))
|
||||
# We increment the number of tests by one because if this is an odd number, we would skip
|
||||
# one test.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue