mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: enable running v test . inside vlib/v/ too
This commit is contained in:
@@ -7,6 +7,7 @@ fn test_all() {
|
||||
mut total_errors := 0
|
||||
vexe := os.getenv('VEXE')
|
||||
vroot := os.dir(vexe)
|
||||
os.chdir(vroot)
|
||||
diff_cmd := util.find_working_diff_command() or {
|
||||
''
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import vmod
|
||||
|
||||
import os
|
||||
|
||||
fn test_from_file() {
|
||||
os.chdir(os.dir(os.getenv('VEXE')))
|
||||
data := vmod.from_file('./v.mod') or {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user