update vtest to print separator with dynamic width
parent
090f444d8f
commit
d5fdbe9e5d
|
@ -46,7 +46,16 @@ pub fn main() {
|
||||||
|
|
||||||
println('Testing...')
|
println('Testing...')
|
||||||
ts.test()
|
ts.test()
|
||||||
println('----------------------------------------------------------------------------')
|
|
||||||
|
// Print separator with dynamic width
|
||||||
|
mut cols := 76
|
||||||
|
if tput := os.exec("tput cols; echo") {
|
||||||
|
if tput.exit_code == 0 {
|
||||||
|
cols = tput.output.int()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
println("-".repeat(cols))
|
||||||
|
|
||||||
println( ts.benchmark.total_message('running V _test.v files') )
|
println( ts.benchmark.total_message('running V _test.v files') )
|
||||||
if ts.failed {
|
if ts.failed {
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in New Issue