summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-29 01:08:07 +0000
committerngie <ngie@FreeBSD.org>2015-12-29 01:08:07 +0000
commit5d20de4a86d8a94c79847288c10ae3de90145c67 (patch)
tree3597657ae40ee4ad24829a1ecb1213f60acb6284 /tests
parent27241dd28beeb2415d518a2877d94c8f4056a0a9 (diff)
downloadFreeBSD-src-5d20de4a86d8a94c79847288c10ae3de90145c67.zip
FreeBSD-src-5d20de4a86d8a94c79847288c10ae3de90145c67.tar.gz
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sys/file/flock_test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/sys/file/flock_test.sh b/tests/sys/file/flock_test.sh
index ac3e799..ffd3d18 100755
--- a/tests/sys/file/flock_test.sh
+++ b/tests/sys/file/flock_test.sh
@@ -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
OpenPOWER on IntegriCloud