svn commit: r366926 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Thu Oct 22 06:48:04 UTC 2020


Author: pho
Date: Thu Oct 22 06:48:03 2020
New Revision: 366926
URL: https://svnweb.freebsd.org/changeset/base/366926

Log:
  Fix list issue with an interrupted test run.

Modified:
  user/pho/stress2/misc/all.sh

Modified: user/pho/stress2/misc/all.sh
==============================================================================
--- user/pho/stress2/misc/all.sh	Thu Oct 22 06:43:48 2020	(r366925)
+++ user/pho/stress2/misc/all.sh	Thu Oct 22 06:48:03 2020	(r366926)
@@ -234,7 +234,6 @@ echo "$loops" | grep -Eq "^[0-9]+$" ||
     { echo "The -l argument must be a positive number"; exit 1; }
 [ -s all.exclude ] && echo "Using all.exclude"
 
-rm -f $alllist
 find `dirname $alllast` -maxdepth 1 -name $alllast -mtime +12h -delete
 touch $alllast $alllog
 chmod 640 $alllast $alllog
@@ -285,10 +284,10 @@ while true; do
 		last=`cat $alllast`
 		if [ -n "$last" ]; then
 			last=`basename $last`
-			l=`echo "$list" | sed "s/.*$last//"`
+			l=`cat "$alllist" | sed "s/.*$last//"`
 			[ -z "$l" ] && l=$list	# start over
 			list=$l
-			echo "Resuming test at `echo "$list" |
+			echo "Last test was $last, resuming test at `echo "$list" |
 			    awk '{print $1}'`"
 		fi
 	fi


More information about the svn-src-user mailing list