Parallel distclean removes testsuite before it is finished
running, causing make error.

Signed-off-by: Valentin Vidic <[email protected]>
---
 tests/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 1dedc2b2..e52aab4c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,8 +6,7 @@ EXTRA_DIST = \
 
 DISTCLEANFILES = \
        atlocal \
-       atconfig \
-       $(TESTSUITE)
+       atconfig
 
 CLEANFILES = testvol
 
@@ -103,6 +102,7 @@ installcheck-local: atconfig atlocal $(TESTSUITE)
 
 clean-local:
        test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' --clean
+       rm -f '$(TESTSUITE)'
 
 atconfig: $(top_builddir)/config.status
        cd $(top_builddir) && ./config.status tests/$@
-- 
2.17.0

Reply via email to