tools: skip pico example on windows (as no windows support yet) (#3542)

pull/3546/head^2
joe-conigliaro 2020-01-23 22:58:47 +11:00 committed by GitHub
parent 82da001faf
commit 9cff1e454c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -195,7 +195,18 @@ pub fn v_build_failing(zargs string, folder string) bool {
eprintln(' v compiler args: "$vargs"') eprintln(' v compiler args: "$vargs"')
mut session := new_test_session(vargs) mut session := new_test_session(vargs)
files := os.walk_ext(filepath.join(parent_dir,folder), '.v') files := os.walk_ext(filepath.join(parent_dir,folder), '.v')
mains := files.filter(!it.contains('modules') && !it.contains('preludes')) mut mains := files.filter(!it.contains('modules') && !it.contains('preludes'))
$if windows {
// skip pico example on windows
// there was a bug using filter here
mut mains_filtered := []string
for file in mains {
if !file.ends_with('examples\\pico\\pico.v') {
mains_filtered << file
}
}
mains = mains_filtered
}
session.files << mains session.files << mains
session.test() session.test()
eprintln(session.benchmark.total_message(finish_label)) eprintln(session.benchmark.total_message(finish_label))