mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
tools.vpm: skip slow tests, that do need network access, when -d network
is not provided
This commit is contained in:
parent
08189d649c
commit
e6bb6df591
6 changed files with 24 additions and 0 deletions
|
@ -8,6 +8,10 @@ const v = os.quoted_path(@VEXE)
|
|||
const test_path = os.join_path(os.vtmp_dir(), 'vpm_dependency_test_${rand.ulid()}')
|
||||
|
||||
fn testsuite_begin() {
|
||||
$if !network ? {
|
||||
eprintln('> skipping ${@FILE}, when `-d network` is missing')
|
||||
exit(0)
|
||||
}
|
||||
os.setenv('VMODULES', test_path, true)
|
||||
os.setenv('VPM_DEBUG', '', true)
|
||||
os.setenv('VPM_NO_INCREMENT', '1', true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue