Skip to content

Commit d761b01

Browse files
committed
fix: test_sec_audit: ignore cargo audit output
Since we run this test twice in case of a PR, cargo audit locks the database and one of the processes may print something (even with -q specified) in stdout (‽). I believe this should be printed in stderr, but we can workaround it here easily. warning: directory /usr/local/rust/advisory-db is locked {...} Use `grep` to filter out the extraneous output. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 394a60b commit d761b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration_tests/security/test_sec_audit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def set_of_vulnerabilities(output: CommandReturn):
3535
)
3636

3737
git_ab_test_host_command_if_pr(
38-
"cargo audit --deny warnings -q --json",
38+
"cargo audit --deny warnings -q --json |grep -Po '{.*}'",
3939
comparator=set_did_not_grow_comparator(set_of_vulnerabilities),
4040
)

0 commit comments

Comments
 (0)