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

test: use 'stty size' for vtest --- line instead of 'tput cols'

This commit is contained in:
Delyan Angelov
2019-12-23 12:23:53 +02:00
committed by Alexander Medvednikov
parent 6c4ef368d7
commit cf37028a52
4 changed files with 16 additions and 10 deletions

View File

@@ -94,6 +94,7 @@ pub fn (ts mut TestSession) test() {
os.rm( tmpc_filepath )
}
ts.benchmark.stop()
eprintln(term.h_divider())
}
pub fn vlib_should_be_present( parent_dir string ) {
@@ -177,6 +178,7 @@ pub fn building_any_v_binaries_failed() bool {
eprintln(bmark.step_message('$cmd => ${bok}'))
}
bmark.stop()
eprintln(term.h_divider())
eprintln( bmark.total_message( 'building v binaries' ) )
return failed

View File

@@ -47,15 +47,6 @@ pub fn main() {
println('Testing...')
ts.test()
// 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') )
if ts.failed {
exit(1)