Skip to content

Commit

Permalink
Reboot if needed after installing packages on Micro
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmanzo committed Sep 4, 2024
1 parent 9639444 commit 5f5db83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/services/sshd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sub prepare_test_data {
zypper_ar(get_required_var('QA_HEAD_REPO'), name => 'qa_head', no_gpg_check => 1) if is_transactional();

# Install software needed for this test module
install_package("netcat-openbsd expect psmisc");
install_package("netcat-openbsd expect psmisc", trup_reboot => 1);

}

Expand Down
3 changes: 2 additions & 1 deletion lib/ssh_crypto_policy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use testapi;
use utils;
use strict;
use warnings;
use package_utils 'install_package';

sub new() {
my ($class, %args) = @_;
Expand All @@ -37,7 +38,7 @@ sub create_host_key_algorithm_array() {

# If nmap is not installed, install it
if (script_run("which nmap")) {
zypper_call("in nmap");
install_package("nmap", trup_reboot => 1);
}

# Get all the algorithms supported by the server side
Expand Down

0 comments on commit 5f5db83

Please sign in to comment.