summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-22 02:10:31 +0000
committerngie <ngie@FreeBSD.org>2015-12-22 02:10:31 +0000
commit729dbfbab01663cea1f9569fa0ff903d2a0cf47e (patch)
tree86764847ba2e35b3fa3c830acd848c80b6a70c38 /tests
parentc2e0ba4db8177981274e2d213b6de70c77b95e4a (diff)
downloadFreeBSD-src-729dbfbab01663cea1f9569fa0ff903d2a0cf47e.zip
FreeBSD-src-729dbfbab01663cea1f9569fa0ff903d2a0cf47e.tar.gz
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
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 f963cde..ead4ff1 100755
--- a/tests/sys/file/flock_test.sh
+++ b/tests/sys/file/flock_test.sh
@@ -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
OpenPOWER on IntegriCloud