[Swift-commit] r4733 - trunk/tests

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Sat Jul 2 19:29:25 CDT 2011


Author: hategan
Date: 2011-07-02 19:29:25 -0500 (Sat, 02 Jul 2011)
New Revision: 4733

Modified:
   trunk/tests/suite.sh
Log:
unnamed is so much worse than the path

Modified: trunk/tests/suite.sh
===================================================================
--- trunk/tests/suite.sh	2011-07-02 22:39:52 UTC (rev 4732)
+++ trunk/tests/suite.sh	2011-07-03 00:29:25 UTC (rev 4733)
@@ -36,6 +36,7 @@
 COLORIZE=0
 # The directory in which to start:
 TOPDIR=`readlink -f $PWD/../../../..`
+CRTDIR=`pwd`
 
 while [ $# -gt 0 ]; do
   case $1 in
@@ -950,7 +951,14 @@
   if [ -r $GROUP/title.txt ]; then
     cat $GROUP/title.txt
   else
-    echo "untitled"
+  	G=$GROUP
+	PIECES=""
+	while [ "$G" != "$CRTDIR" ]; do
+		PIECE=`basename $G`
+		PIECES="$PIECE $PIECES"
+		G=`dirname $G`
+	done
+	echo $PIECES
   fi
 }
 
@@ -967,7 +975,11 @@
 		 html_td class "success"
 		 html "$TESTSPASSED Tests succeeded."
 		 html_~td
-		 html_td class "failure"
+		 if [ "$TESTSFAILED" == "0" ]; then
+		 	html_td class "success"
+		 else
+		 	html_td class "failure"
+		 fi
 		 html "$TESTSFAILED Tests failed."
 		 html_~td
 		 html_td class "neutral" align left
@@ -1144,6 +1156,7 @@
   echo "GROUP: $GROUP"
   [ -d $GROUP ] || crash "Could not find GROUP: $GROUP"
   TITLE=$( group_title )
+
   start_group "Group $GROUPCOUNT: $TITLE"
   test_group
   (( GROUPCOUNT++ ))




More information about the Swift-commit mailing list