Skip to content

Commit

Permalink
use root console, set static root password
Browse files Browse the repository at this point in the history
  • Loading branch information
lkocman committed Sep 4, 2024
1 parent 864ef65 commit 13e0d54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions lib/bootloader_setup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ sub bootmenu_default_params {
# agama.install_url supports comma separated list if more repos are needed ...
push @params, "agama.install_url=$host/assets/repo/$repo";
}
push @params, "live.password=$testapi::password";
}
else {
# On JeOS and MicroOS we don't have YaST installer.
Expand Down
17 changes: 6 additions & 11 deletions tests/installation/agama.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sub agama_define_user_screen {

# Username
send_key 'tab';
type_string 'bernhard';
type_string $testapi::username;
wait_still_screen 5;

# Password - we have to send two tabs as there is a button to show typed password
Expand Down Expand Up @@ -84,18 +84,15 @@ sub agama_define_user_screen {

sub upload_agama_logs {
return if (get_var('NOLOGS'));

#select_serial_terminal();
my $log_path = script_output('agama logs store', proceed_on_failure => 0);
$log_path =~ s/^\s+|\s+$//g; # trim leading and tailing whitespaces

upload_logs($log_path);
select_console("root-console");
# stores logs in /tmp/agma-logs.tar.gz
script_run('agama logs store');
upload_logs('/tmp/agama-logs.tar.gz');
export_logs();
}

sub run {
my ($self) = @_;

assert_screen('agama-inst-welcome-product-list');

if (is_leap('>=16.0')) {
Expand Down Expand Up @@ -177,8 +174,6 @@ sub run {


assert_screen('agama-congratulations');

save_and_upload_log("y2log.after_install", "/var/log/YaST2/y2log");
upload_agama_logs();
assert_and_click('agama-reboot-after-install');

Expand All @@ -198,7 +193,7 @@ sub post_fail_hook {

return if (get_var('NOLOGS'));

#select_serial_terminal();
select_console("root-console");
export_healthcheck_basic();
upload_agama_logs();
export_logs();
Expand Down

0 comments on commit 13e0d54

Please sign in to comment.