mirror of
https://github.com/vlang/v.git
synced 2025-09-17 03:17:25 -04:00
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:
parent
20294fab5d
commit
1941c0b22d
@ -30,6 +30,7 @@ const skip_on_ci_musl = [
|
|||||||
|
|
||||||
const vexe = os.getenv('VEXE')
|
const vexe = os.getenv('VEXE')
|
||||||
|
|
||||||
|
@[markused]
|
||||||
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
||||||
|
|
||||||
const show_cmd = os.getenv('VTEST_SHOW_CMD') != ''
|
const show_cmd = os.getenv('VTEST_SHOW_CMD') != ''
|
||||||
|
@ -7,6 +7,7 @@ import term
|
|||||||
import v.util.diff
|
import v.util.diff
|
||||||
import v.util.vtest
|
import v.util.vtest
|
||||||
|
|
||||||
|
@[markused]
|
||||||
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
||||||
|
|
||||||
const v_ci_ubuntu_musl = os.getenv('V_CI_UBUNTU_MUSL').len > 0
|
const v_ci_ubuntu_musl = os.getenv('V_CI_UBUNTU_MUSL').len > 0
|
||||||
|
@ -5,6 +5,7 @@ import v.slow_tests.repl.runner
|
|||||||
import benchmark
|
import benchmark
|
||||||
import sync.pool
|
import sync.pool
|
||||||
|
|
||||||
|
@[markused]
|
||||||
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
||||||
|
|
||||||
fn test_the_v_compiler_can_be_invoked() {
|
fn test_the_v_compiler_can_be_invoked() {
|
||||||
|
@ -3,6 +3,7 @@ import term
|
|||||||
import benchmark
|
import benchmark
|
||||||
import v.util.vtest
|
import v.util.vtest
|
||||||
|
|
||||||
|
@[markused]
|
||||||
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
||||||
|
|
||||||
fn bold(s string) string {
|
fn bold(s string) string {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
@[markused]
|
||||||
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
||||||
|
|
||||||
const vexe = os.getenv('VEXE')
|
const vexe = os.getenv('VEXE')
|
||||||
|
@ -2,6 +2,8 @@ import os
|
|||||||
|
|
||||||
const vtmp_folder = os.join_path(os.vtmp_dir(), 'run_v_code_tests')
|
const vtmp_folder = os.join_path(os.vtmp_dir(), 'run_v_code_tests')
|
||||||
const vexe = os.getenv('VEXE')
|
const vexe = os.getenv('VEXE')
|
||||||
|
|
||||||
|
@[markused]
|
||||||
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
const turn_off_vcolors = os.setenv('VCOLORS', 'never', true)
|
||||||
|
|
||||||
fn test_vexe_is_set() {
|
fn test_vexe_is_set() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user