summaryrefslogtreecommitdiff
blob: 4dd309c68a3860a85a8e235115aae0b6d440b754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)