mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #18567 from github/redsun82/env-dump-integration-test
Rust/Swift: add integration tests checking env dumping
This commit is contained in:
@@ -8,3 +8,9 @@ def test_cargo(codeql, rust, cargo, check_source_archive, rust_check_diagnostics
|
||||
@pytest.mark.ql_test("steps.ql", expected=".rust-project.expected")
|
||||
def test_rust_project(codeql, rust, rust_project, check_source_archive, rust_check_diagnostics):
|
||||
codeql.database.create()
|
||||
|
||||
@pytest.mark.ql_test(None)
|
||||
def test_do_not_print_env(codeql, rust, cargo, check_env_not_dumped, rust_check_diagnostics):
|
||||
codeql.database.create(_env={
|
||||
"CODEQL_EXTRACTOR_RUST_VERBOSE": "2",
|
||||
})
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
import pytest
|
||||
|
||||
import runs_on
|
||||
|
||||
|
||||
@runs_on.posix
|
||||
def test(codeql, swift):
|
||||
codeql.database.create(command="swift build")
|
||||
|
||||
@runs_on.posix
|
||||
@pytest.mark.ql_test(None)
|
||||
def test_do_not_print_env(codeql, swift, check_env_not_dumped):
|
||||
codeql.database.create(command="swift build", _env={
|
||||
"CODEQL_EXTRACTOR_SWIFT_LOG_LEVELS": "out:text:trace",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user