From 13ec3425873ab1a7d147c3da4d46a851372708ca Mon Sep 17 00:00:00 2001 From: Willenst Date: Tue, 27 Aug 2024 13:32:03 +0200 Subject: [PATCH] remove engine debug output remove unused libs Remove engine debug output --- kernel_hardening_checker/test_engine.py | 17 ----------------- 1 file changed, 17 deletions(-) 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')), \ -- 2.31.1