20 lines
834 B
Diff
20 lines
834 B
Diff
diff --git a/tests/support/paths.py b/tests/support/paths.py
|
|
index da93c8e1e3..895c636fef 100644
|
|
--- a/tests/support/paths.py
|
|
+++ b/tests/support/paths.py
|
|
@@ -40,12 +40,12 @@ if CODE_DIR not in sys.path:
|
|
if TESTS_DIR not in sys.path:
|
|
sys.path.insert(1, TESTS_DIR)
|
|
|
|
-SYS_TMP_DIR = os.path.abspath(os.path.realpath(
|
|
+SYS_TMP_DIR = os.path.abspath(
|
|
# Avoid ${TMPDIR} and gettempdir() on MacOS as they yield a base path too long
|
|
# for unix sockets: ``error: AF_UNIX path too long``
|
|
# Gentoo Portage prefers ebuild tests are rooted in ${TMPDIR}
|
|
os.environ.get('TMPDIR', tempfile.gettempdir()) if not sys.platform.startswith('darwin') else '/tmp'
|
|
-))
|
|
+)
|
|
TMP = os.path.join(SYS_TMP_DIR, 'salt-tests-tmpdir')
|
|
FILES = os.path.join(INTEGRATION_TEST_DIR, 'files')
|
|
PYEXEC = 'python{0}.{1}'.format(*sys.version_info)
|