Potential fix:
https://github.com/rfan1/os-autoinst-distri-opensuse/tree/ima_hash
commit 9a77432e1a782a62982844ac9af2c23eebf18832 (HEAD -> ima_hash, origin/ima_hash)
Author: rfan1 richard.fan@suse.com
Date: Wed Jan 6 13:28:21 2021 +0800
Add keepconsole=1 for power action
diff --git a/tests/security/ima/ima_appraisal_hashes.pm b/tests/security/ima/ima_appraisal_hashes.pm
index d4e60bd7e..0028db31b 100644
--- a/tests/security/ima/ima_appraisal_hashes.pm
+++ b/tests/security/ima/ima_appraisal_hashes.pm
@@ -39,7 +39,8 @@ sub run {
add_grub_cmdline_settings("ima_appraise=fix $tcb_cmdline", update_grub => 1);
- power_action('reboot', textmode => 1);
- select_console 'root-console';
- power_action('reboot', keepconsole => 1, textmode => 1);
$self->wait_boot(textmode => 1);
$self->select_serial_terminal;
@@ -61,7 +62,8 @@ sub run {
replace_grub_cmdline_settings('ima_appraise=fix', '', update_grub => 1);
- power_action('reboot', textmode => 1);
- select_console 'root-console';
- power_action('reboot', keepconsole => 1, textmode => 1);
$self->wait_boot(textmode => 1);
$self->select_serial_terminal;
5 runs passed. however, given the fact that we can pass the case without code change in openqa (just re-run it)
https://openqa.suse.de/tests/5252471#details
marked it close now, once hitting the issue again, will apply this patch