diff --git a/cve_bin_tool/cli.py b/cve_bin_tool/cli.py index d04e7f9ad4..8fb19fbed7 100644 --- a/cve_bin_tool/cli.py +++ b/cve_bin_tool/cli.py @@ -530,6 +530,7 @@ def main(argv=None): LOGGER.setLevel(args["log_level"].upper()) if args["quiet"]: + logging.disable(logging.ERROR) LOGGER.setLevel(logging.CRITICAL) if 0 < LOGGER.level <= 10: diff --git a/test/test_cli.py b/test/test_cli.py index 7a3312a7c8..65e507f82f 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -291,7 +291,6 @@ def test_unknown_warning(self, caplog): assert len(warnings) > 0, "Unknown version warning didn't get generated" assert f"png was detected with version UNKNOWN in file {filename}" in warnings - @pytest.mark.skip(reason="Causing problems during longtests, needs fixing") def test_quiet_mode(self, capsys, caplog): """Test that an quiet mode isn't generating any output"""