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