-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recover only yast logs in Agama auto-install
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
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters