Skip to content

Commit fbe71f6

Browse files
committed
fix: fixed quiet_mode test to ignore unimportant logs (intel#3795)
Signed-off-by: Meet Soni <meetsoni3017@gmail.com>
1 parent f00769b commit fbe71f6

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cve_bin_tool/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ def main(argv=None):
527527
LOGGER.setLevel(args["log_level"].upper())
528528

529529
if args["quiet"]:
530+
logging.disable(logging.ERROR)
530531
LOGGER.setLevel(logging.CRITICAL)
531532

532533
if 0 < LOGGER.level <= 10:

test/test_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ def test_unknown_warning(self, caplog):
291291
assert len(warnings) > 0, "Unknown version warning didn't get generated"
292292
assert f"png was detected with version UNKNOWN in file {filename}" in warnings
293293

294-
@pytest.mark.skip(reason="Causing problems during longtests, needs fixing")
295294
def test_quiet_mode(self, capsys, caplog):
296295
"""Test that an quiet mode isn't generating any output"""
297296

0 commit comments

Comments
 (0)