Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4e8afbd authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcutorture: Abbreviate kvm.sh summary lines



With the addition of the end-of-test state, it is not uncommon for the
kvm.sh summary lines to overflow 80 characters.  This commit therefore
applies abbreviations in order to make the line fit into 80 characters
with high probability.

And yes, I did make heavy use of punched cards back in the day, so 80
columns it is for my xterms!  ;-)

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: default avatarNicholas Piggin <npiggin@gmail.com>
parent 413e5512
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -42,7 +42,7 @@ if test -z "$ngps"
then
then
	echo "$configfile ------- " $stopstate
	echo "$configfile ------- " $stopstate
else
else
	title="$configfile ------- $ngps grace periods"
	title="$configfile ------- $ngps GPs"
	dur=`sed -e 's/^.* rcutorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`
	dur=`sed -e 's/^.* rcutorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`
	if test -z "$dur"
	if test -z "$dur"
	then
	then
@@ -50,7 +50,7 @@ else
	else
	else
		ngpsps=`awk -v ngps=$ngps -v dur=$dur '
		ngpsps=`awk -v ngps=$ngps -v dur=$dur '
			BEGIN { print ngps / dur }' < /dev/null`
			BEGIN { print ngps / dur }' < /dev/null`
		title="$title ($ngpsps per second)"
		title="$title ($ngpsps/s)"
	fi
	fi
	echo $title $stopstate
	echo $title $stopstate
	nclosecalls=`grep --binary-files=text 'torture: Reader Batch' $i/console.log | tail -1 | awk '{for (i=NF-8;i<=NF;i++) sum+=$i; } END {print sum}'`
	nclosecalls=`grep --binary-files=text 'torture: Reader Batch' $i/console.log | tail -1 | awk '{for (i=NF-8;i<=NF;i++) sum+=$i; } END {print sum}'`