test-fixed: always chdir to main v folder before running the tests
parent
217e6f3b8e
commit
4f74410125
|
@ -21,7 +21,6 @@ const (
|
||||||
'vlib/net/ftp/ftp_test.v',
|
'vlib/net/ftp/ftp_test.v',
|
||||||
'vlib/net/http/http_httpbin_test.v',
|
'vlib/net/http/http_httpbin_test.v',
|
||||||
'vlib/net/http/http_test.v',
|
'vlib/net/http/http_test.v',
|
||||||
'vlib/net/socket_test.v',
|
|
||||||
'vlib/regex/regex_test.v',
|
'vlib/regex/regex_test.v',
|
||||||
'vlib/sqlite/sqlite_test.v', // Linux only
|
'vlib/sqlite/sqlite_test.v', // Linux only
|
||||||
'vlib/strconv/ftoa/f32_f64_to_string_test.v',
|
'vlib/strconv/ftoa/f32_f64_to_string_test.v',
|
||||||
|
@ -56,6 +55,7 @@ const (
|
||||||
fn main() {
|
fn main() {
|
||||||
vexe := pref.vexe_path()
|
vexe := pref.vexe_path()
|
||||||
vroot := os.dir(vexe)
|
vroot := os.dir(vexe)
|
||||||
|
os.chdir(vroot)
|
||||||
args := os.args
|
args := os.args
|
||||||
args_string := args[1..].join(' ')
|
args_string := args[1..].join(' ')
|
||||||
cmd_prefix := args_string.all_before('test-fixed')
|
cmd_prefix := args_string.all_before('test-fixed')
|
||||||
|
|
|
@ -130,6 +130,9 @@ pub fn (x Expr) str() string {
|
||||||
CastExpr {
|
CastExpr {
|
||||||
return '${it.typname}(${it.expr.str()})'
|
return '${it.typname}(${it.expr.str()})'
|
||||||
}
|
}
|
||||||
|
SelectorExpr {
|
||||||
|
return '${it.expr.str()}.${it.field}'
|
||||||
|
}
|
||||||
CallExpr {
|
CallExpr {
|
||||||
sargs := args2str(it.args)
|
sargs := args2str(it.args)
|
||||||
if it.is_method {
|
if it.is_method {
|
||||||
|
|
Loading…
Reference in New Issue