builder: fix run & is_test check

pull/4648/head
Alexander Medvednikov 2020-04-29 16:44:50 +02:00
parent be0e848ae8
commit 03cee3fee0
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ pub fn (v Builder) get_user_files() []string {
user_files << os.join_path(preludes_path, 'profiled_program.v') user_files << os.join_path(preludes_path, 'profiled_program.v')
} }
is_test := dir.ends_with('_test.v') is_test := dir.ends_with('_test.v')
if v.pref.is_run { if v.pref.is_run && is_test {
println('use `v x_test.v` instead of `v run x_test.v`') println('use `v x_test.v` instead of `v run x_test.v`')
exit(1) exit(1)
} }