mirror of
				https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
				synced 2025-10-30 23:05:58 +00:00 
			
		
		
		
	We do this in quite a few places and need to do it in another, so let's just have a function for it. It takes a file glob so we can have it run on a different one for _live_build. Signed-off-by: Adam Williamson <awilliam@redhat.com>
		
			
				
	
	
		
			36 lines
		
	
	
		
			819 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			819 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
| use base "installedtest";
 | |
| use strict;
 | |
| use testapi;
 | |
| use utils;
 | |
| 
 | |
| sub run {
 | |
|     my $self = shift;
 | |
|     # handle bootloader, if requested
 | |
|     if (get_var("GRUB_POSTINSTALL")) {
 | |
|         do_bootloader(postinstall=>1, params=>get_var("GRUB_POSTINSTALL"));
 | |
|     }
 | |
| 
 | |
|     # decrypt disks during boot if necessary
 | |
|     if (get_var("ENCRYPT_PASSWORD")) {
 | |
|         boot_decrypt(60);
 | |
|     }
 | |
| 
 | |
|     boot_to_login_screen;
 | |
|     # switch to TTY3 for both, graphical and console tests
 | |
|     $self->root_console(tty=>3);
 | |
|     # disable screen blanking (update can take a long time)
 | |
|     script_run "setterm -blank 0";
 | |
|     # adjust repo files to use mirrorlist not metalink (to avoid
 | |
|     # metalink checksum timing issue causing infra repo to be rejected)
 | |
|     repos_mirrorlist;
 | |
| }
 | |
| 
 | |
| 
 | |
| sub test_flags {
 | |
|     return { fatal => 1 };
 | |
| }
 | |
| 
 | |
| 1;
 | |
| 
 | |
| # vim: set sw=4 et:
 |