tests: add @[markused] to const turn_off_vcolors = os.setenv(VCOLORS, never, true), that just use the side effect of os.setenv, to fix v test-self run locally (on the CI, it is the default, so not setting it does not matter).

This commit is contained in:
Delyan Angelov 2024-12-04 02:12:38 +02:00
parent 20294fab5d
commit 1941c0b22d
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
6 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,7 @@ const skip_on_ci_musl = [
const vexe = os.getenv('VEXE')
@[markused]
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
const show_cmd = os.getenv('VTEST_SHOW_CMD') != ''

View File

@ -7,6 +7,7 @@ import term
import v.util.diff
import v.util.vtest
@[markused]
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
const v_ci_ubuntu_musl = os.getenv('V_CI_UBUNTU_MUSL').len > 0

View File

@ -5,6 +5,7 @@ import v.slow_tests.repl.runner
import benchmark
import sync.pool
@[markused]
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
fn test_the_v_compiler_can_be_invoked() {

View File

@ -3,6 +3,7 @@ import term
import benchmark
import v.util.vtest
@[markused]
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
fn bold(s string) string {

View File

@ -1,5 +1,6 @@
import os
@[markused]
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
const vexe = os.getenv('VEXE')

View File

@ -2,6 +2,8 @@ import os
const vtmp_folder = os.join_path(os.vtmp_dir(), 'run_v_code_tests')
const vexe = os.getenv('VEXE')
@[markused]
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
fn test_vexe_is_set() {