From 434f01436c06c8abcf7f1d6463bf25283d596d27 Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Wed, 21 Aug 2024 15:05:06 +0200 Subject: [PATCH] limit for the first --- Sanity/dhcp6-onesubnet-perfdhcp/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sanity/dhcp6-onesubnet-perfdhcp/test.sh b/Sanity/dhcp6-onesubnet-perfdhcp/test.sh index d3865fc..1ebcf43 100755 --- a/Sanity/dhcp6-onesubnet-perfdhcp/test.sh +++ b/Sanity/dhcp6-onesubnet-perfdhcp/test.sh @@ -90,8 +90,9 @@ rlJournalStart sleep 5 # wait to save log - SENT_PACKETS=$(grep 'sent packets' "$PERF_LOG" | awk '{print $3}') - RECEIVED_PACKETS=$(grep 'received packets' "$PERF_LOG" | awk '{print $3}') + SENT_PACKETS=$(grep 'sent packets' "$PERF_LOG" | awk '{print $3}'|head -n1) + RECEIVED_PACKETS=$(grep 'received packets' "$PERF_LOG" | awk '{print $3}'|head -n1) + # 65000 rlLog "sent packets = $SENT_PACKETS" @@ -100,6 +101,7 @@ rlJournalStart rlAssertGreater 'sent packets are similar as perfdhcp 666*100' $SENT_PACKETS 65000 rlAssertGreater 'received packets are similar as perfdhcp 666*100' $RECEIVED_PACKETS 65000 + echo XXXXXXXXXXXXXXXXX cat $PERF_LOG