Rust: avoid test name with *

This commit is contained in:
Paolo Tranquilli
2024-11-08 18:20:09 +01:00
parent d9d37dc341
commit 98b7d50e8a

View File

@@ -30,7 +30,8 @@ def test_cfg_override(codeql, rust):
@pytest.mark.parametrize("features",
[
pytest.param(p,
marks=pytest.mark.ql_test("feature_functions.ql", expected=f".{e}.expected"))
marks=pytest.mark.ql_test("feature_functions.ql", expected=f".{e}.expected"),
id="all" if p == "*" else p) # CI does not like tests with *...
for p, e in (("foo", "foo"), ("bar", "bar"), ("*", "all"), ("foo,bar", "all"))
])
def test_features(codeql, rust, features):