Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2015 02:10:31 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292582 - head/tests/sys/file
Message-ID:  <201512220210.tBM2AV5s093561@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Dec 22 02:10:31 2015
New Revision: 292582
URL: https://svnweb.freebsd.org/changeset/base/292582

Log:
  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

Modified:
  head/tests/sys/file/flock_test.sh

Modified: head/tests/sys/file/flock_test.sh
==============================================================================
--- head/tests/sys/file/flock_test.sh	Tue Dec 22 01:21:27 2015	(r292581)
+++ head/tests/sys/file/flock_test.sh	Tue Dec 22 02:10:31 2015	(r292582)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512220210.tBM2AV5s093561>