Per-patch: Allow parsing CPS MRR results 53/30953/5
authorVratko Polak <vrpolak@cisco.com>
Wed, 27 Jan 2021 16:13:05 +0000 (17:13 +0100)
committerVratko Polak <vrpolak@cisco.com>
Thu, 17 Feb 2022 08:39:14 +0000 (08:39 +0000)
The previous grep was too strict about test message.

Change-Id: Ib0c120a32d205b905f257e5b3c948a309ed8abb2
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/bash/function/per_patch.sh

index 3ded218..2149d79 100644 (file)
@@ -176,7 +176,7 @@ function parse_bmrr_results () {
     # TODO: Do we need to check echo exit code explicitly?
     echo "Parsing ${in_file} putting results into ${out_file}"
     echo "TODO: Re-use parts of PAL when they support subsample test parsing."
-    pattern='Maximum Receive Rate trial results in packets'
+    pattern='Maximum Receive Rate trial results in .*'
     pattern+=' per second: .*\]</status>'
     grep -o "${pattern}" "${in_file}" | grep -o '\[.*\]' > "${out_file}" || {
         die "Some parsing grep command has failed."