Rust: fix integration test on windows

This commit is contained in:
Paolo Tranquilli
2024-11-11 13:37:25 +01:00
parent 34361b81eb
commit 5ef92a281b
2 changed files with 9 additions and 8 deletions

View File

@@ -1,16 +1,17 @@
import pytest
def test_default(codeql, rust):
codeql.database.create()
@pytest.mark.parametrize("option",
@pytest.mark.parametrize("features",
[
pytest.param(p,
marks=pytest.mark.ql_test(expected=f".{e}.expected"))
for p, e in (
(None, "default"),
("cargo_features=foo", "foo"),
("cargo_features=bar", "bar"),
("cargo_features=*", "all"),
("cargo_features=foo,bar", "all"))
("foo", "foo"),
("bar", "bar"),
("*", "all"),
("foo,bar", "all"))
])
def test_features(codeql, rust, option):
codeql.database.create(extractor_option=option)
def test_features(codeql, rust, features):
codeql.database.create(extractor_option=f"cargo_features={features}")