[CRIU] [PATCH] test: show logs in case an error

Andrey Vagin avagin at openvz.org
Sun Dec 29 03:47:58 PST 2013


Makefile is locked, because tests can be executed concurrently.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/Makefile b/test/Makefile
index bb32826..eb7e5f6 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -19,4 +19,4 @@ fault-injection: .FORCE
 
 zdtm_ns: $(shell echo "$(TST)" | tr ' ' '\n' | grep -P $(EXP))
 $(TST):
-	./zdtm.sh ${ZDTM_ARGS} $(@) &> $(subst /,_,$@).log
+	./zdtm.sh ${ZDTM_ARGS} $(@) &> $(subst /,_,$@).log || ( flock Makefile cat $(subst /,_,$@).log)
-- 
1.8.3.1



More information about the CRIU mailing list