Skip to content

Commit

Permalink
Fix timeout issue on wicked test
Browse files Browse the repository at this point in the history
  • Loading branch information
rfan1 committed Aug 16, 2024
1 parent 7d6d3b8 commit a6cc847
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wickedbase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1305,9 +1305,9 @@ sub need_network_tweaks() {
sub wait_for_background_process {
my ($self, $pid, %args) = @_;
$args{proceed_on_failure} //= 0;

my $ret = script_run("waitpid --timeout 25 $pid", %args);
if ($ret == 3) { # timeout
# https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19853/files#r1718454521
my $ret = eval { script_run("wait $pid", %args); };
unless (defined($ret)) {
if (is_serial_terminal()) {
type_string(qq(\cc));
}
Expand Down

0 comments on commit a6cc847

Please sign in to comment.