config-tools: refine print out message after running board inspector

1. Generate success message when there is no critical error.
2. Generate note when there is error(s).

Tracked-On: #8297
Signed-off-by: yuchuyang <yu-chu.yang@intel.com>
This commit is contained in:
yuchuyang 2022-11-07 21:37:32 -08:00 committed by acrnsi-robot
parent 808b4f6628
commit 638567e425
1 changed files with 2 additions and 5 deletions

View File

@ -134,14 +134,11 @@ def summary_loginfo(board_xml):
print("\033[1;31m{0}\033[0m".format(critical.strip('\n')))
print("="*length)
if len(error_list) != 0 and len(critical_list) == 0:
if len(critical_list) == 0:
print(
f"\033[1;32mSUCCESS: Board configuration file {board_xml} generated successfully and saved to {os.path.dirname(os.path.abspath(board_xml))}\033[0m\n")
if len(error_list) != 0:
print("\033[1;36mNOTE: Board configuration file lacks important features, which will cause ACRN to fail build or boot. Resolve ERROR messages then run the tool again.\033[0m")
elif len(warning_list) != 0 and len(error_list) == 0 and len(critical_list) == 0:
print(
f"\033[1;32mSUCCESS: Board configuration file {board_xml} generated successfully and saved to {os.path.dirname(os.path.abspath(board_xml))}\033[0m\n")
tmpfile.close()
def main(board_name, board_xml, args):