all: change empty comment to newline (#22053)

This commit is contained in:
yuyi 2024-08-16 17:09:30 +08:00 committed by GitHub
parent 38e23a76f3
commit cb58db56ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 31 additions and 33 deletions

View file

@ -464,7 +464,7 @@ fn (mut cmd Command) run() {
return
}
}
//
mut is_failed := false
mut is_failed_expected := false
mut is_failed_starts_with := false
@ -497,10 +497,10 @@ fn (mut cmd Command) run() {
is_failed_contains = true
}
}
//
run_label := if is_failed { term.failed('FAILED') } else { term_highlight('OK') }
println('> Running: "${cmd.line}" took: ${spent} ms ... ${run_label}')
//
if is_failed && is_failed_expected {
eprintln('> expected:\n${cmd.expect}')
eprintln('> output:\n${cmd.output}')