Skip to content

Commit ea0bd74

Browse files
authored
Merge pull request #18567 from github/redsun82/env-dump-integration-test
Rust/Swift: add integration tests checking env dumping
2 parents 89fd287 + f28140b commit ea0bd74

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

rust/ql/integration-tests/hello-project/test_project.py

+6
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ def test_cargo(codeql, rust, cargo, check_source_archive, rust_check_diagnostics
88
@pytest.mark.ql_test("steps.ql", expected=".rust-project.expected")
99
def test_rust_project(codeql, rust, rust_project, check_source_archive, rust_check_diagnostics):
1010
codeql.database.create()
11+
12+
@pytest.mark.ql_test(None)
13+
def test_do_not_print_env(codeql, rust, cargo, check_env_not_dumped, rust_check_diagnostics):
14+
codeql.database.create(_env={
15+
"CODEQL_EXTRACTOR_RUST_VERBOSE": "2",
16+
})
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
import pytest
2+
13
import runs_on
24

35

46
@runs_on.posix
57
def test(codeql, swift):
68
codeql.database.create(command="swift build")
9+
10+
@runs_on.posix
11+
@pytest.mark.ql_test(None)
12+
def test_do_not_print_env(codeql, swift, check_env_not_dumped):
13+
codeql.database.create(command="swift build", _env={
14+
"CODEQL_EXTRACTOR_SWIFT_LOG_LEVELS": "out:text:trace",
15+
})

0 commit comments

Comments
 (0)