Date: Tue, 29 Dec 2015 01:08:08 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r292854 - stable/10/tests/sys/file Message-ID: <201512290108.tBT188n0016600@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512290108.tBT188n0016600>