From 2c7ecbb305c09ff6f07fbeb0db30c06b6cf96e3c Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Thu, 25 Nov 2021 20:32:59 +0000 Subject: [PATCH] [KERNEL][TEST] Refactor tool check git-svn-id: svn://kolibrios.org@9311 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/runtests.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kernel/trunk/runtests.py b/kernel/trunk/runtests.py index 43b10e761..dc336d469 100755 --- a/kernel/trunk/runtests.py +++ b/kernel/trunk/runtests.py @@ -50,8 +50,12 @@ def check_tools(tools): not_exists.append((name, package)) if len(not_exists) != 0: log("Sorry, I can't find some tools:") - max_name_len = len("name") - max_package_name_len = len("package") + + header_name = "Name" + header_package = "Package (probably)" + + max_name_len = len(header_name) + max_package_name_len = len(header_package) for name, package in not_exists: if len(package) > max_package_name_len: max_package_name_len = len(package) @@ -65,7 +69,7 @@ def check_tools(tools): log(f" +-{'-' * max_name_len}-+-{'-' * max_package_name_len}-+") draw_line() - draw_row("Name", "Package") + draw_row(header_name, header_package) draw_line() for name, package in not_exists: draw_row(name, package)