chiark / gitweb /
tests/dtest.py: Refer to the home directory via a symlink.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 27 Nov 2017 10:18:11 +0000 (10:18 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 29 Nov 2017 11:47:21 +0000 (11:47 +0000)
commit002272c9e61ac20e9f8404ae2fe67bde98cb3849
treeceb7ba963731a5575e66d3a9418a86624b1b233a
parent3dd7ec41f4067b35740aba970b6405dbd3113f8f
tests/dtest.py: Refer to the home directory via a symlink.

Pathnames during `make distcheck' are remarkably long, even if the
original project path is very short.  Indeed, the previous change which
added the test name into the `testroot' path is enough to push the
server's socket name over the magic 108-byte limit.

As an additional hack, arrange to refer to the home directory via a
symbolic link in `/tmp' (or wherever $TMPDIR points), which should be
much shorter.  The symlink is deleted on test completion, because
otherwise we'll fill up `/tmp' with cruft, but I hope this doesn't cause
too much in the way of diagnostic trouble.
tests/dtest.py