Skip to content

Commit

Permalink
tools: fix v build-examples on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Dec 11, 2021
1 parent 79de408 commit bf835d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/tools/vbuild-examples.v
Expand Up @@ -12,18 +12,18 @@ const efolders = [
fn main() {
args_string := os.args[1..].join(' ')
params := args_string.all_before('build-examples')
skip_prefixes := efolders.map(os.join_path(vroot, it))
skip_prefixes := efolders.map(os.real_path(os.join_path_single(vroot, it)))
res := testing.v_build_failing_skipped(params, 'examples', skip_prefixes, fn (mut session testing.TestSession) {
for x in efolders {
pathsegments := x.split_any('/')
session.add(os.join_path(vroot, ...pathsegments))
session.add(os.real_path(os.join_path(vroot, ...pathsegments)))
}
})
if res {
exit(1)
}
if testing.v_build_failing_skipped(params + '-live', os.join_path('examples', 'hot_reload'),
skip_prefixes, fn (mut session testing.TestSession) {})
if testing.v_build_failing_skipped(params + '-live', os.join_path_single('examples',
'hot_reload'), skip_prefixes, fn (mut session testing.TestSession) {})
{
exit(1)
}
Expand Down

0 comments on commit bf835d4

Please sign in to comment.