Skip to content

Commit 2e69417

Browse files
committed
rust integration test: use all output from codeql test run
The integration test expectes to find a certain phrase from the extractor repeated in the _stderr_ of `codeql test run`. However, that subcommand is about to start reproducing the extractor output as-is, which means the phrase will instead appear in _stdout_. Change the integration test to capture all of the output, so it will keep passing across the change.
1 parent 49c4c34 commit 2e69417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/ql/integration-tests/qltest/test_qltest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test(codeql, rust, expected_files, dir):
2020
codeql.test.run(dir)
2121

2222
def test_failing_cargo_check(codeql, rust):
23-
out = codeql.test.run("failing_cargo_check", _assert_failure=True, _capture="stderr")
23+
out = codeql.test.run("failing_cargo_check", _assert_failure=True, _capture="all")
2424
# TODO: QL test output redirection is currently broken on windows, leaving it up for follow-up work
2525
if not runs_on.windows:
2626
assert "requested cargo check failed" in out

0 commit comments

Comments
 (0)