From: Willenst Date: Tue, 27 Aug 2024 11:32:03 +0000 (+0200) Subject: remove engine debug output X-Git-Tag: v0.6.10~18^2 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=13ec3425873ab1a7d147c3da4d46a851372708ca;p=kconfig-hardened-check.git remove engine debug output remove unused libs Remove engine debug output --- diff --git a/kernel_hardening_checker/test_engine.py b/kernel_hardening_checker/test_engine.py index a25a364..10cc2e7 100755 --- a/kernel_hardening_checker/test_engine.py +++ b/kernel_hardening_checker/test_engine.py @@ -15,8 +15,6 @@ import unittest from unittest import mock import io import sys -import json -import inspect from typing import Union, Optional, List, Dict, Tuple from .engine import StrOrBool, ChecklistObjType, KconfigCheck, CmdlineCheck, SysctlCheck, VersionCheck, OR, AND from .engine import populate_with_data, perform_checks, override_expected_value, print_unknown_options, colorize_result @@ -80,21 +78,6 @@ class TestEngine(unittest.TestCase): # now everything is ready, perform the checks perform_checks(checklist) - # print the table with the results - print(f'\n{inspect.stack()[1].function}():') - print('=' * 121) - for opt in checklist: - opt.table_print('verbose', True) # verbose mode, with_results - print() - print('=' * 121) - - # print the results in JSON - result = [] - for opt in checklist: - result.append(opt.json_dump(True)) # with_results - print(json.dumps(result)) - print() - @staticmethod def get_engine_result(checklist: List[ChecklistObjType], result: ResultType, result_type: str) -> None: assert(result_type in ('json', 'stdout', 'stdout_verbose')), \