Skip to content

Commit

Permalink
Allow matching for multiple valid connectivity states
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksinger committed Nov 15, 2024
1 parent 8698f03 commit bad9f19
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 "timeout 90 bash -c \"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 -E '$expected_nm_connectivity'; do sleep 10; done\"";
}
} else {
assert_script_run 'rcnetwork restart';
Expand Down

0 comments on commit bad9f19

Please sign in to comment.