Date: Thu, 22 Oct 2020 06:48:04 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r366926 - user/pho/stress2/misc Message-ID: <202010220648.09M6m4Ka039861@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010220648.09M6m4Ka039861>