From: JINMEI Tatuya Date: Thu, 22 Dec 2011 18:32:52 +0000 (-0800) Subject: [master] workaround for test failure using a deeper build dir: use a relative X-Git-Tag: trac2351_base~299^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1cd2de193c2e6b350caa9b643c568c2a5ac55304;p=thirdparty%2Fkea.git [master] workaround for test failure using a deeper build dir: use a relative path for the test unix domain socket. --- diff --git a/src/lib/python/isc/util/io/tests/Makefile.am b/src/lib/python/isc/util/io/tests/Makefile.am index 95eba057ad..3429009776 100644 --- a/src/lib/python/isc/util/io/tests/Makefile.am +++ b/src/lib/python/isc/util/io/tests/Makefile.am @@ -16,18 +16,19 @@ if ENABLE_PYTHON_COVERAGE rm -f .coverage ${LN_S} $(abs_top_srcdir)/.coverage .coverage endif -# XXX: we pollute the top builddir for creating a temporary test file -# so we can minimize the risk of exceeding the limit of file name path size -# for a UNIX domain socket. +# Note: below we intentionally use a non absolute path for TESTDATAOBJDIR. +# It will be used as part of the path for a UNIX domain socket. Due to the +# relatively lower limit on the length it's better to keep it as short as +# possible. for pytest in $(PYTESTS) ; do \ echo Running test: $$pytest ; \ PYTHONPATH=$(COMMON_PYTHON_PATH):$(abs_top_builddir)/src/lib/isc/python/util/io/.libs \ $(LIBRARY_PATH_PLACEHOLDER) \ - TESTDATAOBJDIR=$(abs_top_builddir) \ + TESTDATAOBJDIR=$(builddir) \ $(PYCOVERAGE_RUN) $(abs_srcdir)/$$pytest || exit ; \ done -CLEANFILES = $(abs_top_builddir)/ssessiontest.unix +CLEANFILES = $(builddir)/ssessiontest.unix CLEANDIRS = __pycache__