Skip to content

Commit

Permalink
Merge pull request os-autoinst#19647 from rfan1/nvdia_sign_key
Browse files Browse the repository at this point in the history
Handle new signing key for NVIDIA repo
  • Loading branch information
rfan1 authored Jul 3, 2024
2 parents 813686a + bfee135 commit beb3bca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/console/qam_zypper_patch.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2015-2016 LLC
# Copyright 2015-2024 LLC
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: zypper patch for maintenance
Expand All @@ -9,11 +9,14 @@ use strict;
use warnings;
use testapi;
use utils;
use serial_terminal 'select_serial_terminal';

sub run {
select_console 'root-console';
select_serial_terminal;

zypper_call('in -l -t patch ' . get_var('INCIDENT_PATCH'), exitcode => [0, 102, 103], timeout => 1400);
# NVIDIA repo needs new signing key, see poo#163094
my $sign_key = get_var('BUILD') =~ /openSUSE-repos/ ? '--gpg-auto-import-keys' : '';
zypper_call("$sign_key in -l -t patch " . get_var('INCIDENT_PATCH'), exitcode => [0, 102, 103], timeout => 1400);
}

sub test_flags {
Expand Down

0 comments on commit beb3bca

Please sign in to comment.