diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-22 02:10:31 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-22 02:10:31 +0000 |
commit | 729dbfbab01663cea1f9569fa0ff903d2a0cf47e (patch) | |
tree | 86764847ba2e35b3fa3c830acd848c80b6a70c38 /tests | |
parent | c2e0ba4db8177981274e2d213b6de70c77b95e4a (diff) | |
download | FreeBSD-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-x | tests/sys/file/flock_test.sh | 5 |
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 |