Commit f3cec004 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

test: show logs in case an error (v2)

Makefile is locked, because tests can be executed concurrently.

v2: return non-zero code
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2379c670
...@@ -19,4 +19,5 @@ fault-injection: .FORCE ...@@ -19,4 +19,5 @@ fault-injection: .FORCE
zdtm_ns: $(shell echo "$(TST)" | tr ' ' '\n' | grep -P $(EXP)) zdtm_ns: $(shell echo "$(TST)" | tr ' ' '\n' | grep -P $(EXP))
$(TST): $(TST):
./zdtm.sh ${ZDTM_ARGS} $(@) &> $(subst /,_,$@).log ./zdtm.sh ${ZDTM_ARGS} $(@) &> $(subst /,_,$@).log || \
{ flock Makefile cat $(subst /,_,$@).log; exit 1; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment