From 51ff59af71d6b4ae09316715ca06cabc10ef6bdb Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 25 May 2022 18:03:21 +0300 Subject: [PATCH] [#454] Support repeating tests in resulting file One test may be a part of several test groups. See 'test_multipart_copy_versioned'. This commit fixes result file parsing. Signed-off-by: Alex Vanin --- updateTestsResult.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updateTestsResult.sh b/updateTestsResult.sh index 4a39fdd..4e41c00 100755 --- a/updateTestsResult.sh +++ b/updateTestsResult.sh @@ -32,9 +32,9 @@ do RESULT=$(echo "$RES_LINE" | sed -e 's/^.*\.\.\.[[:space:]]*//') # beautify trailing spaces - OLD_RESULT_S3GW=$(sed -n "s/^.*${TEST}[[:space:]]*|[[:space:]]\(.*\)[[:space:]]|.*|.*|$/\1/p" "$RESULT_FILE") - OLD_RESULT_MINIO=$(sed -n "s/^.*${TEST}[[:space:]]*|.*|[[:space:]]\(.*\)[[:space:]]|.*|$/\1/p" "$RESULT_FILE") - OLD_RESULT_AWS=$(sed -n "s/^.*${TEST}[[:space:]]*|.*|.*|[[:space:]]\(.*\)[[:space:]]|$/\1/p" "$RESULT_FILE") + OLD_RESULT_S3GW=$(sed -n "s/^.*${TEST}[[:space:]]*|[[:space:]]\(.*\)[[:space:]]|.*|.*|$/\1/p" "$RESULT_FILE" | head -1) + OLD_RESULT_MINIO=$(sed -n "s/^.*${TEST}[[:space:]]*|.*|[[:space:]]\(.*\)[[:space:]]|.*|$/\1/p" "$RESULT_FILE" | head -1) + OLD_RESULT_AWS=$(sed -n "s/^.*${TEST}[[:space:]]*|.*|.*|[[:space:]]\(.*\)[[:space:]]|$/\1/p" "$RESULT_FILE" | head -1) ADJUSTED_RESULT_S3GW=$(get_adjusted_result "$OLD_RESULT_S3GW" "$RESULT") ADJUSTED_RESULT_MINIO=$(get_adjusted_result "$OLD_RESULT_MINIO" "$RESULT")