1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix coutput_test.v on windows

This commit is contained in:
Delyan Angelov
2021-07-31 12:35:05 +03:00
parent d2e28e8fc5
commit 456a19f6d4
2 changed files with 14 additions and 2 deletions

View File

@@ -6,13 +6,14 @@ import v.util.vtest
const vexe = @VEXE
const vroot = @VMODROOT
const vroot = os.real_path(@VMODROOT).replace('./', '')
const testdata_folder = os.join_path(vroot, 'vlib', 'v', 'gen', 'c', 'testdata')
const diff_cmd = diff.find_working_diff_command() or { '' }
fn test_out_files() ? {
eprintln('> vroot: $vroot')
println(term.colorize(term.green, '> testing whether .out files match:'))
os.chdir(vroot)
output_path := os.join_path(os.temp_dir(), 'coutput', 'out')
@@ -147,7 +148,7 @@ fn normalize_panic_message(message string, vroot string) string {
}
fn vroot_relative(path string) string {
return path.replace(os.path_separator, '/').replace('$vroot/', '')
return path.replace(os.path_separator, '/').replace('$vroot/', '').replace('./', '')
}
fn ensure_compilation_succeeded(compilation os.Result) {