Skip to content

Commit 20d6d27

Browse files
kalyazinManciukic
authored andcommitted
test(vulnerabilities): ignore host checks on ubuntu
Ubuntu 6.14 kernel is configured with CONFIG_MITIGATION_GDS making /sys/devices/system/cpu/vulnerabilities/gather_data_sampling report Vulnerable. Suppress the check until the distro updates the kernel configuration. Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent b6e0b1b commit 20d6d27

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/integration_tests/security/test_vulnerabilities.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ def download_spectre_meltdown_checker(tmp_path_factory):
110110
global_props.buildkite_pr,
111111
reason="Test depends solely on factors external to GitHub repository",
112112
)
113+
# Temporary suppression for Ubuntu 6.14 kernel
114+
@pytest.mark.skipif(
115+
"Ubuntu" in global_props.os and global_props.host_linux_version == "6.14",
116+
reason="Ubuntu does not enable CONFIG_MITIGATION_GDS on 6.14 kernel",
117+
)
113118
def test_spectre_meltdown_checker_on_host(spectre_meltdown_checker):
114119
"""Test with the spectre / meltdown checker on host."""
115120
report = spectre_meltdown_checker.get_report_for_host()
@@ -121,6 +126,11 @@ def test_spectre_meltdown_checker_on_host(spectre_meltdown_checker):
121126
global_props.buildkite_pr,
122127
reason="Test depends solely on factors external to GitHub repository",
123128
)
129+
# Temporary suppression for Ubuntu 6.14 kernel
130+
@pytest.mark.skipif(
131+
"Ubuntu" in global_props.os and global_props.host_linux_version == "6.14",
132+
reason="Ubuntu does not enable CONFIG_MITIGATION_GDS on 6.14 kernel",
133+
)
124134
def test_vulnerabilities_on_host():
125135
"""Test vulnerability files on host."""
126136
res = utils.run_cmd(f"grep -r Vulnerable {VULN_DIR}")

0 commit comments

Comments
 (0)