1
0
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:
Delyan Angelov
2020-09-18 19:20:01 +03:00
parent b4535acbac
commit 78e6ddee75
3 changed files with 6 additions and 2 deletions

View File

@@ -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 {
''
}

View File

@@ -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)
}