From 8b302ecdb9cb2c7ae651a07406666686a51ff7ad Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 22 Dec 2015 02:10:31 +0000 Subject: [PATCH] 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 --- tests/sys/file/flock_test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/sys/file/flock_test.sh b/tests/sys/file/flock_test.sh index f963cdeb23c..ead4ff1a980 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