]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
iotests/147: ensure temporary sockets are closed before exiting
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 15 Jul 2025 14:30:21 +0000 (15:30 +0100)
committerJohn Snow <jsnow@redhat.com>
Mon, 15 Sep 2025 18:36:01 +0000 (14:36 -0400)
This avoids the python resource leak detector from issuing warnings
in the iotests.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemu-iotests/147

index 6d6f077a14d42328f32b7891e789305af288a10d..3e14bd389a4edbd2ea7630d0ece5ed8ade4b580d 100755 (executable)
@@ -277,6 +277,7 @@ class BuiltinNBD(NBDBlockdevAddBase):
                      } }
         self.client_test(filename, flatten_sock_addr(address), 'nbd-export')
 
+        sockfd.close()
         self._server_down()