Skip to content

Commit

Permalink
Increase timeout for nmcli
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvid committed Nov 15, 2024
1 parent 602a746 commit f3ff2a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,8 @@ sub set_hostname {
}

for (my $i = 0; $i < 5; $i++) {
$state = script_output 'nmcli -w 5 networking connectivity check';
# Increase timeout to 60s - poo#169726
$state = script_output("nmcli -w 60 networking connectivity check", proceed_on_failure => 1);

last if $state =~ /full/;

Expand Down
3 changes: 2 additions & 1 deletion tests/microos/networkmanager.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ sub ping_check {
assert_script_run("ping -c 5 $net_config{'dns_server'}");
# disconnect the device, skip the test on remote worker with ssh connection
unless (is_s390x || is_vmware) {
assert_script_run("nmcli device disconnect $nic_name");
# Increase timeout to 60s - poo#169726
assert_script_run("nmcli -w 60 device disconnect $nic_name");
if (script_run("ping -c 5 $net_config{'dns_server'}") == 0) {
die('The network is still up after disconnection');
}
Expand Down

0 comments on commit f3ff2a7

Please sign in to comment.