mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 06:17:47 +00:00
[thread-cert] fix bug that docker network is not removed (#10590)
In some cases that `_do_packet_verification` is False (e.g. verify() is not defined), the docker network is not correctly removed. docker network interface should always be removed at the end of the test if it was created at the begin of the test
This commit is contained in:
@@ -296,10 +296,12 @@ class TestCase(NcpSupportMixin, unittest.TestCase):
|
||||
|
||||
self.simulator.stop()
|
||||
|
||||
if self._has_backbone_traffic():
|
||||
self._remove_backbone_network()
|
||||
|
||||
if self._do_packet_verification:
|
||||
|
||||
if self._has_backbone_traffic():
|
||||
self._remove_backbone_network()
|
||||
pcap_filename = self._merge_thread_backbone_pcaps()
|
||||
else:
|
||||
pcap_filename = self._get_thread_pcap_filename()
|
||||
|
||||
Reference in New Issue
Block a user