From 15d796dfa726efc3f14bafdd5167ea1b45ae682a Mon Sep 17 00:00:00 2001 From: Sathisha S Date: Mon, 2 Mar 2026 14:00:02 +0000 Subject: [PATCH] capsule_ondisk_reporting_vars_check: Align result reporting and skip handling - Mark test as SKIPPED instead of WARNING when capsule on-disk support is not applicable. - Return exit code 2 directly for skipped cases without additional exit logging. - Add explicit overall result reporting: - PASSED when no failures are detected. - WARNING when failures are present. - Remove redundant exit code logging. Signed-off-by: Sathisha S Change-Id: Id6e80288ed0273edf7e1cd2ad8307cc353052820 --- .../capsule_ondisk_reporting_vars_check.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/common/linux_scripts/capsule_ondisk_reporting_vars_check.py b/common/linux_scripts/capsule_ondisk_reporting_vars_check.py index 373a4cd0..7c9a3879 100755 --- a/common/linux_scripts/capsule_ondisk_reporting_vars_check.py +++ b/common/linux_scripts/capsule_ondisk_reporting_vars_check.py @@ -379,10 +379,8 @@ def main(): log(f"INFO: OsIndicationsSupported value: 0x{os_indications_value:X}") if not on_disk_supported: - log("RESULTS: Capsule on-disk reporting variables test is not applicable - WARNING") - exit_code = 2 - log(f"INFO: Exit code: {exit_code}") - return exit_code + log("RESULTS: Capsule on-disk reporting variables test is not applicable - SKIPPED") + return 2 log("INFO: OsIndicationsSupported indicates capsule on-disk support; running recommended checks") @@ -401,7 +399,10 @@ def main(): log() exit_code = 3 if failed else 0 - log(f"INFO: Exit code: {exit_code}") + if exit_code == 0: + log("RESULTS: Overall Capsule On-Disk Update Reporting Variables Result: PASSED") + else: + log("RESULTS: Overall Capsule On-Disk Update Reporting Variables Result: WARNING") return exit_code if __name__ == "__main__":