From 641c073929e334c2ef5fedc7d7fb853c2843c8d5 Mon Sep 17 00:00:00 2001 From: Otto Sabart Date: Wed, 29 Jan 2025 15:08:38 +0100 Subject: [PATCH] Fix the test for multiple test contacts --- tests/report/reportportal/test.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/report/reportportal/test.sh b/tests/report/reportportal/test.sh index 0e354b4a92..304369e77b 100755 --- a/tests/report/reportportal/test.sh +++ b/tests/report/reportportal/test.sh @@ -205,11 +205,10 @@ rlJournalStart if [[ $jq_element == attributes ]]; then key="contact" value="$(yq -r ".\"$test_name\".$key" test.fmf)" + if [[ $value != null ]]; then - if [[ "$value" == *","* ]]; then - # Get the contact items as CSV (separated by a comma) - value="$(yq -r ". | @csv" <<< $value)" - fi + # Get the contact items as values separated by a comma + value="$(yq -r '. | join(",")' <<< $value)" rlAssertGrep "$key" tmp_attributes.json -A1 > tmp_attributes_selection IFS=, read -r -a contact_items <<< "$value"