Fix regex for http xfail list 93/103593/2
authormrichomme <morgan.richomme@orange.com>
Thu, 12 Mar 2020 10:48:57 +0000 (11:48 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Thu, 12 Mar 2020 12:55:04 +0000 (12:55 +0000)
in CI we got an error sed: unsupported command o
due to space management in the sed command

Issue-ID: INT-1480

Signed-off-by: mrichomme <morgan.richomme@orange.com>
Change-Id: I44c6ecd7c47ec02b76c7932bb86de0a58726d93d

test/security/check_for_nonssl_endpoints.sh

index 6056e03..9e98520 100755 (executable)
@@ -105,7 +105,7 @@ while IFS= read -r line; do
                wl_port=$(echo $wl_line | awk {'print $2'})
                if grep -e $wl_name.*$wl_port <<< "$line"; then
                        # Found in white list, exclude it
-                       sed -i "/$line/d" $FILTERED_PORTS_LIST
+                       sed -i "/^$wl_name.*$wl_port/d" $FILTERED_PORTS_LIST
                fi
        done < $XF_RAW_FILE_PATH
 done < $FILTERED_PORTS_LIST