Skip to content

Commit

Permalink
Merge pull request #33 from DMTF/One-Time-Boot-Fix
Browse files Browse the repository at this point in the history
Fixed check at the end of the one time boot test to check for BootSourceOverrideEnabled going back to Disabled
  • Loading branch information
mraineri authored Oct 31, 2019
2 parents e63aab6 + 283f06a commit 11d636c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions one_time_boot/one_time_boot_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@
for i in range( 0, 60 ):
time.sleep( 1 )
boot_obj = redfish_utilities.get_system_boot( redfish_obj, system )
if boot_obj["BootSourceOverrideTarget"] == "None":
if boot_obj["BootSourceOverrideEnabled"] == "Disabled":
break
if boot_obj["BootSourceOverrideTarget"] == "None":
if boot_obj["BootSourceOverrideEnabled"] == "Disabled":
print( "{} booted from {}!".format( system, test_path ) )
results.update_test_results( "Boot Verify", 0, None )
else:
print( "{} failed to boot from {}!".format( system, test_path ) )
results.update_test_results( "Boot Verify", 1, "{} did not reset back to 'None'".format( system ) )
results.update_test_results( "Boot Verify", 1, "{} did not reset back to 'Disabled'".format( system ) )

# Save the results
results.write_results()
Expand Down

0 comments on commit 11d636c

Please sign in to comment.