Skip to content

Commit 6623dbf

Browse files
committed
tools: improve development experience for v -W -silent test-self vlib (especially on CIs); *always* show compilation errors for failures
1 parent ff2df3c commit 6623dbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/tools/modules/testing/common.v

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import sync
99
import sync.pool
1010
import v.pref
1111
import v.util.vtest
12+
import v.util.vflags
1213
import runtime
1314
import rand
1415
import strings
@@ -410,7 +411,7 @@ fn worker_trunner(mut p pool.PoolProcessor, idx int, thread_id int) voidptr {
410411
tls_bench.njobs = ts.benchmark.njobs
411412
abs_path := os.real_path(p.get_item[string](idx))
412413
mut relative_file := abs_path
413-
mut cmd_options := [ts.vargs]
414+
mut cmd_options := vflags.tokenize_to_args(ts.vargs) // make sure that `'-W -silent'` becomes `['-W', '-silent']`, while keeping quoted spaces intact
414415
mut run_js := false
415416

416417
is_fmt := ts.vargs.contains('fmt')

0 commit comments

Comments
 (0)