@@ -127,9 +127,9 @@ def tearDown(self):
127
127
# by also checking the cmd arguments passed to the daemon
128
128
if self ._interfaces :
129
129
for tmp in self ._interfaces :
130
- self .assertFalse (process_named_running (daemon , tmp ))
130
+ self .assertFalse (process_named_running (daemon , tmp , timeout = 10 ))
131
131
else :
132
- self .assertFalse (process_named_running (daemon ))
132
+ self .assertFalse (process_named_running (daemon , timeout = 10 ))
133
133
134
134
def test_dhcp_disable_interface (self ):
135
135
if not self ._test_dhcp :
@@ -179,7 +179,7 @@ def test_dhcp_client_options(self):
179
179
180
180
for interface in self ._interfaces :
181
181
# Check if dhclient process runs
182
- dhclient_pid = process_named_running (dhclient_process_name , cmdline = interface )
182
+ dhclient_pid = process_named_running (dhclient_process_name , cmdline = interface , timeout = 10 )
183
183
self .assertTrue (dhclient_pid )
184
184
185
185
dhclient_config = read_file (f'{ dhclient_base_dir } /dhclient_{ interface } .conf' )
@@ -216,7 +216,7 @@ def test_dhcp_vrf(self):
216
216
self .assertEqual (tmp , vrf_name )
217
217
218
218
# Check if dhclient process runs
219
- dhclient_pid = process_named_running (dhclient_process_name , cmdline = interface )
219
+ dhclient_pid = process_named_running (dhclient_process_name , cmdline = interface , timeout = 10 )
220
220
self .assertTrue (dhclient_pid )
221
221
# .. inside the appropriate VRF instance
222
222
vrf_pids = cmd (f'ip vrf pids { vrf_name } ' )
@@ -251,7 +251,7 @@ def test_dhcpv6_vrf(self):
251
251
self .assertEqual (tmp , vrf_name )
252
252
253
253
# Check if dhclient process runs
254
- tmp = process_named_running (dhcp6c_process_name , cmdline = interface )
254
+ tmp = process_named_running (dhcp6c_process_name , cmdline = interface , timeout = 10 )
255
255
self .assertTrue (tmp )
256
256
# .. inside the appropriate VRF instance
257
257
vrf_pids = cmd (f'ip vrf pids { vrf_name } ' )
@@ -945,7 +945,7 @@ def test_dhcpv6_client_options(self):
945
945
duid_base += 1
946
946
947
947
# Better ask the process about it's commandline in the future
948
- pid = process_named_running (dhcp6c_process_name , cmdline = interface )
948
+ pid = process_named_running (dhcp6c_process_name , cmdline = interface , timeout = 10 )
949
949
self .assertTrue (pid )
950
950
951
951
dhcp6c_options = read_file (f'/proc/{ pid } /cmdline' )
@@ -1004,7 +1004,7 @@ def test_dhcpv6pd_auto_sla_id(self):
1004
1004
address = str (int (address ) + 1 )
1005
1005
1006
1006
# Check for running process
1007
- self .assertTrue (process_named_running (dhcp6c_process_name , cmdline = interface ))
1007
+ self .assertTrue (process_named_running (dhcp6c_process_name , cmdline = interface , timeout = 10 ))
1008
1008
1009
1009
for delegatee in delegatees :
1010
1010
# we can already cleanup the test delegatee interface here
@@ -1070,7 +1070,7 @@ def test_dhcpv6pd_manual_sla_id(self):
1070
1070
address = str (int (address ) + 1 )
1071
1071
1072
1072
# Check for running process
1073
- self .assertTrue (process_named_running (dhcp6c_process_name , cmdline = interface ))
1073
+ self .assertTrue (process_named_running (dhcp6c_process_name , cmdline = interface , timeout = 10 ))
1074
1074
1075
1075
for delegatee in delegatees :
1076
1076
# we can already cleanup the test delegatee interface here
0 commit comments