From bfee13501b597d9e092e8810ea7711ee83f89f6a Mon Sep 17 00:00:00 2001 From: rfan1 Date: Mon, 1 Jul 2024 23:43:00 -0400 Subject: [PATCH] Handle new signing key for NVIDIA repo https://progress.opensuse.org/issues/163094 --- tests/console/qam_zypper_patch.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/console/qam_zypper_patch.pm b/tests/console/qam_zypper_patch.pm index 7b1ecc379a43..fe9a75a0a4ad 100644 --- a/tests/console/qam_zypper_patch.pm +++ b/tests/console/qam_zypper_patch.pm @@ -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 @@ -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 {