mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Force skip_code_coverage to True
This commit is contained in:
parent
cbacd30640
commit
1cf5424953
2 changed files with 13 additions and 7 deletions
|
@ -493,7 +493,8 @@ def define_testrun(ctx: Context, event_name: str, changed_files: pathlib.Path):
|
||||||
|
|
||||||
if "test:coverage" in labels:
|
if "test:coverage" in labels:
|
||||||
ctx.info("Writing 'testrun' to the github outputs file")
|
ctx.info("Writing 'testrun' to the github outputs file")
|
||||||
testrun = TestRun(type="full", skip_code_coverage=False)
|
# skip running code coverage for now, was False
|
||||||
|
testrun = TestRun(type="full", skip_code_coverage=True)
|
||||||
with open(github_output, "a", encoding="utf-8") as wfh:
|
with open(github_output, "a", encoding="utf-8") as wfh:
|
||||||
wfh.write(f"testrun={json.dumps(testrun)}\n")
|
wfh.write(f"testrun={json.dumps(testrun)}\n")
|
||||||
with open(github_step_summary, "a", encoding="utf-8") as wfh:
|
with open(github_step_summary, "a", encoding="utf-8") as wfh:
|
||||||
|
@ -504,7 +505,8 @@ def define_testrun(ctx: Context, event_name: str, changed_files: pathlib.Path):
|
||||||
elif event_name != "pull_request":
|
elif event_name != "pull_request":
|
||||||
# In this case, a full test run is in order
|
# In this case, a full test run is in order
|
||||||
ctx.info("Writing 'testrun' to the github outputs file")
|
ctx.info("Writing 'testrun' to the github outputs file")
|
||||||
testrun = TestRun(type="full", skip_code_coverage=False)
|
# skip running code coverage for now, was False
|
||||||
|
testrun = TestRun(type="full", skip_code_coverage=True)
|
||||||
with open(github_output, "a", encoding="utf-8") as wfh:
|
with open(github_output, "a", encoding="utf-8") as wfh:
|
||||||
wfh.write(f"testrun={json.dumps(testrun)}\n")
|
wfh.write(f"testrun={json.dumps(testrun)}\n")
|
||||||
|
|
||||||
|
|
14
tools/vm.py
14
tools/vm.py
|
@ -309,7 +309,7 @@ def test(
|
||||||
print_tests_selection: bool = False,
|
print_tests_selection: bool = False,
|
||||||
print_system_info: bool = False,
|
print_system_info: bool = False,
|
||||||
print_system_info_only: bool = False,
|
print_system_info_only: bool = False,
|
||||||
skip_code_coverage: bool = True,
|
skip_code_coverage: bool = False,
|
||||||
envvars: list[str] = None,
|
envvars: list[str] = None,
|
||||||
fips: bool = False,
|
fips: bool = False,
|
||||||
):
|
):
|
||||||
|
@ -331,10 +331,14 @@ def test(
|
||||||
env["PRINT_TEST_SELECTION"] = "1"
|
env["PRINT_TEST_SELECTION"] = "1"
|
||||||
else:
|
else:
|
||||||
env["PRINT_TEST_SELECTION"] = "0"
|
env["PRINT_TEST_SELECTION"] = "0"
|
||||||
if skip_code_coverage:
|
|
||||||
env["SKIP_CODE_COVERAGE"] = "1"
|
# skip running code coverage for now
|
||||||
else:
|
## if skip_code_coverage:
|
||||||
env["SKIP_CODE_COVERAGE"] = "0"
|
## env["SKIP_CODE_COVERAGE"] = "1"
|
||||||
|
## else:
|
||||||
|
## env["SKIP_CODE_COVERAGE"] = "0"
|
||||||
|
env["SKIP_CODE_COVERAGE"] = "1"
|
||||||
|
|
||||||
if print_system_info:
|
if print_system_info:
|
||||||
env["PRINT_SYSTEM_INFO"] = "1"
|
env["PRINT_SYSTEM_INFO"] = "1"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue