1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Dump out the output from flock_helper on failure so failures with the

test app can be debugged

MFC after: 1 week
Obtained from: Isilon OneFS (^/onefs/head@r511419)
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2015-12-22 02:10:31 +00:00
parent 1115e598dd
commit 8b302ecdb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292582

View File

@ -43,10 +43,11 @@ for n in `seq 1 $last_testcase`; do
todomsg=" # TODO: racy testcase"
fi
$(dirname $0)/flock_helper . $n | grep -q SUCCEED
if [ $? -eq 0 ]; then
output=$($(dirname $0)/flock_helper . $n)
if echo "$output" | grep -q SUCCEED; then
echo "ok $n$todomsg"
else
echo "not ok $n$todomsg"
echo "$output" >&2
fi
done