master - tests: log parallel debug.log usage as problem
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0aef2b719f17bddfe8afeaa4d38447975c192f50 Commit: 0aef2b719f17bddfe8afeaa4d38447975c192f50 Parent: 0457224febdf1eb3ddc66369d39808a6f2d6ec26 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Apr 13 16:30:36 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Apr 13 16:38:32 2015 +0200
tests: log parallel debug.log usage as problem
--- test/lib/lvm-wrapper.sh | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
test/lib/lvm-wrapper.sh +4 -1
@@ -39,7 +39,10 @@ case "$CMD" in esac # Capture parallel users of debug.log file -test -z "$(fuser debug.log 2>/dev/null)" || { echo "Test suite problem: \"debug.log\" is still in use!" >&2 ; return 1 ; } +test -z "$(fuser debug.log 2>/dev/null)" || { + echo "TEST WARNING: \"debug.log\" is still in use while running $CMD $@" >&2 + fuser -v debug.log >&2 +} # the exec is important, because otherwise fatal signals inside "not" go unnoticed if test -n "$abs_top_builddir"; then