1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: sort the .vv files in vlib/v/slow_tests/inout/compiler_test.v, before testing them, to have more predictable output

This commit is contained in:
Delyan Angelov 2023-01-15 11:34:10 +02:00
parent 877a1e511a
commit 2b4c60d07f
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -21,7 +21,8 @@ fn test_all() {
os.chdir(vroot) or {}
diff_cmd := diff.find_working_diff_command() or { '' }
dir := 'vlib/v/slow_tests/inout'
files := os.ls(dir) or { panic(err) }
mut files := os.ls(dir) or { panic(err) }
files.sort()
tests := files.filter(it.ends_with('.vv') || it.ends_with('.vsh'))
if tests.len == 0 {
println('no compiler tests found')