Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions common/linux_scripts/capsule_ondisk_reporting_vars_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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__":
Expand Down