tests: simplify cmd/tools/modules/testing/common.v

This commit is contained in:
Delyan Angelov 2022-05-15 12:54:22 +03:00
parent cbb24d34c9
commit b4c529066a
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 4 additions and 8 deletions

View file

@ -69,7 +69,7 @@ fn main() {
testing.header('Testing...')
ts.test()
println(ts.benchmark.total_message('all V _test.v files'))
if ts.failed {
if ts.failed_cmds.len > 0 {
exit(1)
}
}