-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16889 from grisu48/slem_on_pc_with_rockets
Add container schedule for SLEM on PC
- Loading branch information
Showing
2 changed files
with
59 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
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,36 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright 2023 SUSE LLC | ||
# | ||
# Copying and distribution of this file, with or without modification, | ||
# are permitted in any medium without royalty provided the copyright | ||
# notice and this notice are preserved. This file is offered as-is, | ||
# without any warranty. | ||
|
||
# Summary: Prepare SLEM on PC for testing | ||
# Maintainer: qa-c team <qa-c@suse.de> | ||
|
||
use Mojo::Base 'publiccloud::basetest'; | ||
use testapi; | ||
use serial_terminal 'select_serial_terminal'; | ||
use transactional qw(trup_call process_reboot); | ||
|
||
sub run { | ||
my ($self, $args) = @_; | ||
my $instance = $args->{my_instance}; | ||
select_serial_terminal; | ||
|
||
if (get_var("PUBLIC_CLOUD_CONTAINERS")) { | ||
my $runtime = get_required_var('CONTAINER_RUNTIME'); | ||
# Install packages for container test runs | ||
trup_call("pkg install $runtime toolbox"); | ||
$instance->softreboot(); | ||
} | ||
} | ||
|
||
sub test_flags { | ||
return {fatal => 1}; | ||
} | ||
|
||
1; | ||
|