action #102311
Updated by rfan1 over 2 years ago
##Description: In bootloader_setup.pm module, there is a function to disable secureboot in tianocore. Current logic is only disabling the secureboot, I need re-enable it in ima/evm test cases. the operations are 80% same as this function, so will try to revise this code ~~~ html sub tianocore_disable_secureboot { my $basetest = shift; assert_screen 'grub2'; send_key 'c'; sleep 2; enter_cmd "exit"; assert_screen 'tianocore-mainmenu'; # Select 'Boot manager' entry send_key_until_needlematch('tianocore-devicemanager', 'down', 5, 5); send_key 'ret'; send_key_until_needlematch('tianocore-devicemanager-sb-conf', 'down', 5, 5); send_key 'ret'; send_key_until_needlematch('tianocore-devicemanager-sb-conf-attempt-sb', 'down', 5, 5); send_key 'spc'; assert_screen 'tianocore-devicemanager-sb-conf-changed'; send_key 'ret'; assert_screen 'tianocore-devicemanager-sb-conf-attempt-sb'; send_key 'f10'; assert_screen 'tianocore-bootmanager-save-changes'; send_key 'Y'; send_key_until_needlematch 'tianocore-devicemanager', 'esc'; send_key_until_needlematch 'tianocore-mainmenu-reset', 'down'; send_key 'ret'; send_key 'ret' if check_screen('tianocore-secureboot-not-enabled', 20); $basetest->wait_grub; } ~~~ ##Expect result We can Current logic is only disabling the secureboot, I need re-enable it in ima/evm test cases. the secureboot without changing much code. operations are 80% same as this function, so will try to revise this code