MFC r292582:

Dump out the output from flock_helper on failure so failures with the
test app can be debugged

Obtained from: Isilon OneFS (^/onefs/head@r511419)
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
ngie 2015-12-29 01:08:07 +00:00
parent 27241dd28b
commit 5d20de4a86

View File

@ -48,10 +48,11 @@ for n in `seq 1 $last_testcase`; do
todomsg=" # TODO: racy testcase (doesn't handle EINTR properly)"
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