Date: Sat, 29 Feb 2020 09:21:53 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r358458 - user/pho/stress2/misc Message-ID: <202002290921.01T9Lrnh006569@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Sat Feb 29 09:21:53 2020 New Revision: 358458 URL: https://svnweb.freebsd.org/changeset/base/358458 Log: Added a timeout and an error exit to this test. Modified: user/pho/stress2/misc/kinfo3.sh Modified: user/pho/stress2/misc/kinfo3.sh ============================================================================== --- user/pho/stress2/misc/kinfo3.sh Sat Feb 29 09:19:50 2020 (r358457) +++ user/pho/stress2/misc/kinfo3.sh Sat Feb 29 09:21:53 2020 (r358458) @@ -46,12 +46,13 @@ start=`date '+%s'` while [ $((`date '+%s'` - start)) -lt 1200 ]; do pids="" for i in `jot 5`; do - /tmp/kinfo3 & + timeout 5m /tmp/kinfo3 & pids="$pids $!" done for pid in $pids; do wait $pid - [ $? -ne 0 ] && s=1 + r=$? + [ $r -ne 0 ] && { s=1; echo "Exit code $r"; break; } done done
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002290921.01T9Lrnh006569>