mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-07 17:03:31 +01:00
13 lines
607 B
Diff
13 lines
607 B
Diff
Let's use TMPDIR as the base for this test's unix socket to help it pass.
|
|
We set TMPDIR in the ebuild to ${T}.
|
|
--- a/tests/backdoor_test.py
|
|
+++ b/tests/backdoor_test.py
|
|
@@ -47,7 +47,7 @@ class BackdoorTest(tests.LimitedTestCase):
|
|
self._run_test_on_client_and_server(client, serv)
|
|
|
|
def test_server_on_unix_socket(self):
|
|
- SOCKET_PATH = '/tmp/eventlet_backdoor_test.socket'
|
|
+ SOCKET_PATH = os.getenv('TMPDIR', '/tmp') + '/eventlet_backdoor_test.socket'
|
|
if os.path.exists(SOCKET_PATH):
|
|
os.unlink(SOCKET_PATH)
|
|
listener = socket.socket(socket.AF_UNIX)
|