svn commit: r292854 - stable/10/tests/sys/file
Garrett Cooper
ngie at FreeBSD.org
Tue Dec 29 01:08:09 UTC 2015
Author: ngie
Date: Tue Dec 29 01:08:07 2015
New Revision: 292854
URL: https://svnweb.freebsd.org/changeset/base/292854
Log:
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 at r511419)
Sponsored by: EMC / Isilon Storage Division
Modified:
stable/10/tests/sys/file/flock_test.sh
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/tests/sys/file/flock_test.sh
==============================================================================
--- stable/10/tests/sys/file/flock_test.sh Tue Dec 29 01:07:00 2015 (r292853)
+++ stable/10/tests/sys/file/flock_test.sh Tue Dec 29 01:08:07 2015 (r292854)
@@ -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
More information about the svn-src-stable-10
mailing list