From 03b8afa6699e06bb418c4da27e614e20cc2d1202 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Fri, 26 Jun 2020 09:04:40 -0700 Subject: [PATCH] test/check_so_deps.sh: fix output parsing. The previous revision to output parsing could cause issues when more than one set of parenthesis was included in the output. fixes: 8661ded76128905e5b2719c3198c14d1cfd46339 Signed-off-by: Seth Howell Change-Id: I1cbfac1186fb5ee97518f4b687f38af59c0dcfb9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3092 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Community-CI: Mellanox Build Bot --- test/make/check_so_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/make/check_so_deps.sh b/test/make/check_so_deps.sh index aea62237d..8726efb6e 100755 --- a/test/make/check_so_deps.sh +++ b/test/make/check_so_deps.sh @@ -289,7 +289,7 @@ EOF if ! output=$(abidiff "$source_abi_dir/$so_file" "$libdir/$so_file" --leaf-changes-only --suppressions $suppression_file --stat); then # remove any filtered out variables. - output=${output// [()][^)]*[)]/} + output=$(sed "s/ [()][^)]*[)]//g" <<< "$output") IFS="." read -r _ _ new_so_maj new_so_min < <(readlink "$libdir/$so_file") IFS="." read -r _ _ old_so_maj old_so_min < <(readlink "$source_abi_dir/$so_file")