From a0233634b004476c99659df14a1946625702d138 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 4 Nov 2020 21:01:21 +0100 Subject: [PATCH] Reenable tests, don't run them in parallel --- PDAL.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PDAL.spec b/PDAL.spec index 5ee41d4..3ab6c93 100644 --- a/PDAL.spec +++ b/PDAL.spec @@ -184,11 +184,15 @@ sphinx-build -b html . build/html ## test the compiled code (see doc/project/testing.rst) # we skip tests for selected architectures which need upstream fixes %ifarch armv7hl aarch64 ppc64le s390x -%ctest || true +(cd %{_vpath_builddir} && ctest --output-on-failure || true) %else ## we skip the PG test (BUILD_PGPOINTCLOUD_TESTS:BOOL=OFF): # PGUSER=pdal PGPASSWORD=password PGHOST=localhost PGPORT=5432 ctest -V -#ctest + +# Use plain ctest as opposed to %%ctest, which runs tests in parallel, and appears to trigger +# a race condition when running pdal_filters_overlay_test, leading to +# "Unable to open stream for '/builddir/build/BUILD/PDAL-2.2.0-src/test/data/../temp/temp.laz' with error 'No such file or directory'". +(cd %{_vpath_builddir} && ctest --output-on-failure) %endif %files