Skip to content

Commit

Permalink
ofproto-macros.at: Fix hex matching in the strip_recird() macro.
Browse files Browse the repository at this point in the history
This patch includes 'a-f' matching in the sed command.

Fixes: 7b3a4c2 ("Revert "odp-util: Always report ODP_FIT_TOO_LITTLE for IGMP."")
Acked-by: Simon Horman <[email protected]>
Signed-off-by: Eelco Chaudron <[email protected]>
  • Loading branch information
chaudron committed Jan 23, 2025
1 parent 318c1cd commit 9e07a69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ofproto-macros.at
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ strip_eth () {
# 'recirc=<recirc_id>' respectively. This should make output easier to
# compare.
strip_recirc() {
sed 's/recirc_id([[x0-9]]*)/recirc_id(<recirc>)/
s/recirc_id=[[x0-9]]*/recirc_id=<recirc>/
s/recirc([[x0-9]]*)/recirc(<recirc>)/'
sed 's/recirc_id([[x0-9a-f]]*)/recirc_id(<recirc>)/
s/recirc_id=[[x0-9a-f]]*/recirc_id=<recirc>/
s/recirc([[x0-9a-f]]*)/recirc(<recirc>)/'
}

# Strips dp_hash from output.
Expand Down

0 comments on commit 9e07a69

Please sign in to comment.