Skip to content

Commit

Permalink
Recover only yast logs in Agama auto-install
Browse files Browse the repository at this point in the history
See https://progress.opensuse.org/issues/128489

Adding a post_fail_hook directly in the module to use the default
installer password and just upload y2logs, as it seems like there
is nothing that does only that in the libs.
  • Loading branch information
JRivrain committed May 18, 2023
1 parent 82895a6 commit c2eae86
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions lib/yam/agama/agama_base.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Copyright 2023 SUSE LLC
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: base class for Agama tests
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de>

package yam::agama::agama_base;
use base 'opensusebasetest';
use strict;
use warnings;
use testapi 'select_console';
use y2_base 'save_upload_y2logs';

sub post_fail_hook {
$testapi::password = 'linux';
select_console 'root-console';
y2_base::save_upload_y2logs;
}

1;
2 changes: 1 addition & 1 deletion tests/yam/agama/auto.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Summary: First installation using D-Installer current CLI (only for development purpose)
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de>

use base 'y2_installbase';
use base yam::agama::agama_base;
use strict;
use warnings;

Expand Down

0 comments on commit c2eae86

Please sign in to comment.