Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 19 lines 641 B view raw
1--- a/tests/executors/test_unixsocket_executor.py 2+++ b/tests/executors/test_unixsocket_executor.py 3@@ -4,6 +4,7 @@ Some of these tests run ``nc``: when running Debian, make sure the 4 ``netcat-openbsd`` package is used, not ``netcat-traditional``. 5 """ 6 7+import os 8 import sys 9 10 import pytest 11@@ -12,7 +13,7 @@ from mirakuru import TimeoutExpired 12 from mirakuru.unixsocket import UnixSocketExecutor 13 from tests import TEST_SOCKET_SERVER_PATH 14 15-SOCKET_PATH = "/tmp/mirakuru.sock" 16+SOCKET_PATH = os.path.join(os.getenv("TMPDIR", "/tmp"), "mirakuru.sock") 17 18 SOCKET_SERVER_CMD = f"{sys.executable} {TEST_SOCKET_SERVER_PATH} {SOCKET_PATH}" 19