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
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to