Skip to contentSkip to conversation

gfs2-utils tests: Fix testsuite cleanup

PATCH New Valentin Vidic 2 participants 2 messages May 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2-utils tests: Fix testsuite cleanup

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

---
 tests/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/Makefile.am +2 -2
index 1dedc2b2..e52aab4c 100644
@@ -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/$@
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 gfs2-utils tests: Fix testsuite cleanup

Quoted 7 lines · Valentin Vidic

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

---
  tests/Makefile.am | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Applied - thanks!

Andy

Quoted 24 lines
tests/Makefile.am +2 -2
index 1dedc2b2..e52aab4c 100644
@@ -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/$@