Skip to content

Commit

Permalink
Handle new signing key for NVIDIA repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rfan1 committed Jul 3, 2024
1 parent d619026 commit bfee135
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 bfee135

Please sign in to comment.