From 4824fae295983c88aeff8dba4d0a8f5e26c099b6 Mon Sep 17 00:00:00 2001 From: Zxilly Date: Thu, 11 Jul 2024 16:56:25 +0800 Subject: [PATCH] test: enable atomic coverage Signed-off-by: Zxilly --- scripts/tests.py | 6 +++--- scripts/tool/gsa.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/tests.py b/scripts/tests.py index 86a5417ccd..52991ae7af 100644 --- a/scripts/tests.py +++ b/scripts/tests.py @@ -38,7 +38,7 @@ def run_unit_tests(full: bool, wasm: bool, no_embed: bool): "go", "test", "-v", - "-covermode=set", + "-covermode=atomic", "-cover", "-tags=embed", "./...", @@ -72,7 +72,7 @@ def run_unit_tests(full: bool, wasm: bool, no_embed: bool): "go", "test", "-v", - "-covermode=set", + "-covermode=atomic", "-cover", "./internal/webui", "-args", @@ -138,7 +138,7 @@ def run_unit_tests(full: bool, wasm: bool, no_embed: bool): "go", "test", "-v", - "-covermode=set", + "-covermode=atomic", "-cover", "-coverpkg=../../...", f"-test.gocoverdir={unit_path}", diff --git a/scripts/tool/gsa.py b/scripts/tool/gsa.py index a191177b59..94b5b00ce2 100644 --- a/scripts/tool/gsa.py +++ b/scripts/tool/gsa.py @@ -20,7 +20,7 @@ def build_gsa(): "build", "-buildmode=exe", # since windows use pie by default "-cover", - "-covermode=set", + "-covermode=atomic", "-tags", "embed,profiler", "-o",