Skip to content

Commit

Permalink
Do not wait indefinitely for NM connectivity
Browse files Browse the repository at this point in the history
This timeout aligns with the documented default value in
https://open.qa/api/testapi/#_assert_script_run
  • Loading branch information
nicksinger committed Nov 15, 2024
1 parent 602a746 commit 8698f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mm_network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ sub restart_networking {
# Wait until the connections are configured
my $expected_nm_connectivity = get_var('EXPECTED_NM_CONNECTIVITY', 'full');
if ($expected_nm_connectivity ne 'none') {
assert_script_run "until nmcli networking connectivity check | tee /dev/stderr | grep '$expected_nm_connectivity'; do sleep 10; done";
assert_script_run "timeout 90 bash -c \"until nmcli networking connectivity check | tee /dev/stderr | grep '$expected_nm_connectivity'; do sleep 10; done\"";
}
} else {
assert_script_run 'rcnetwork restart';
Expand Down

0 comments on commit 8698f03

Please sign in to comment.