ci: os.chdir() fixes for windows jobs

pull/11329/head
Delyan Angelov 2021-08-28 16:21:46 +03:00
parent f41939f005
commit 25bf68e2f1
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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