mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: os.chdir() fixes for windows jobs
This commit is contained in:
parent
f41939f005
commit
25bf68e2f1
@ -14,9 +14,9 @@ fn find_diff_cmd() string {
|
||||
return diff.find_working_diff_command() or { '' }
|
||||
}
|
||||
|
||||
fn test_vet() {
|
||||
fn test_vet() ? {
|
||||
os.setenv('VCOLORS', 'never', true)
|
||||
os.chdir(vroot)
|
||||
os.chdir(vroot) ?
|
||||
test_dir := 'cmd/tools/vdoc/tests/testdata'
|
||||
main_files := get_main_files_in_dir(test_dir)
|
||||
fails := check_path(vexe, test_dir, main_files)
|
||||
|
@ -11,7 +11,7 @@ fn main() {
|
||||
$if windows {
|
||||
println('Setup freetype...')
|
||||
vroot := os.dir(pref.vexe_path())
|
||||
os.chdir(vroot)
|
||||
os.chdir(vroot) ?
|
||||
if os.is_dir(freetype_folder) {
|
||||
println('Thirdparty "freetype" is already installed.')
|
||||
} else {
|
||||
|
@ -11,10 +11,10 @@ fn find_diff_cmd() string {
|
||||
return res
|
||||
}
|
||||
|
||||
fn test_vet() {
|
||||
fn test_vet() ? {
|
||||
vexe := os.getenv('VEXE')
|
||||
vroot := os.dir(vexe)
|
||||
os.chdir(vroot)
|
||||
os.chdir(vroot) ?
|
||||
test_dir := 'cmd/tools/vvet/tests'
|
||||
tests := get_tests_in_dir(test_dir)
|
||||
fails := check_path(vexe, test_dir, tests)
|
||||
|
Loading…
Reference in New Issue
Block a user