]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] workaround for test failure using a deeper build dir: use a relative
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 22 Dec 2011 18:32:52 +0000 (10:32 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 22 Dec 2011 18:32:52 +0000 (10:32 -0800)
path for the test unix domain socket.

src/lib/python/isc/util/io/tests/Makefile.am

index 95eba057add293d89083a3308583db1cd89a7995..3429009776928fd441b85740b9cd9ab971af146d 100644 (file)
@@ -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__