Project

General

Profile

action #167024

Updated by JERiveraMoya 6 months ago

#### Motivation 
 Once the system is installed with agama, in slower architecture the screen is not drawn (fully or partially) on time and the 10 seconds that we have to interact with grub2 run out and the test fails sporadically, ie: 
 https://openqa.opensuse.org/tests/4486200#step/grub_test/2 

 With the openSUSE/SLES installer we solve this situation for automation by disabling the grub timeout in the UI https://openqa.opensuse.org/tests/4475892#step/disable_grub_timeout/20 but agama doesn't have this functionality (yet?). 

 In the same fashion that QE Yam create its own module to boot agama in quemu we could extract the code that is useful from method `grub_test` in `grub_utils.pm` and create a simplified version (we can call it `agama_grub2.pm`), easier to maintain and which might include some temporary adjustments to avoid the problem described above. 

 A small experiment trying to intercept the black screen succeeded, this is the extract of the code: 
 ``` 
 assert_screen([qw(grub2 grub2-black-screen)], $timeout); 
     if (match_has_tag "grub2-black-screen") { 
         for (1 .. 9) { 
             send_key("up"); 
             last if check_screen("grub2", 0); 
             sleep 0.5; 
         } 
     } 
 ``` 
 https://openqa.opensuse.org/tests/overview?version=agama-9.0&distri=opensuse&build=jknphy%2Fos-autoinst-distri-opensuse%23stopgrubtimeout 

 #### Acceptance criteria 
 - **AC1**: Make stable reaching the grub screen after agama installs the system in ppc64le. 
 - **AC2**: Solution should not be included in the shared code, but encapsulated in a new test module, not breaking any other jobs.

Back