test/make: properly escape '.' in awk.
The period was being treated as a wildcard by awk so it was improperly parsing the libspdk_sock*.so library versions. Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: I37d3cfaf7bf9c29c6d5efb647e68d8a8be715a2b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1513 Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
dbb84dd5d6
commit
cd982ad6ed
@ -35,10 +35,10 @@ function confirm_abi_deps() {
|
||||
if ! abidiff $libdir/$so_file $source_abi_dir/$so_file --leaf-changes-only --stat > /dev/null; then
|
||||
found_abi_change=false
|
||||
output=$(abidiff $libdir/$so_file $source_abi_dir/$so_file --leaf-changes-only --stat) || true
|
||||
new_so_maj=$(readlink $libdir/$so_file | awk -F'.so.' '{print $2}' | cut -d '.' -f1)
|
||||
new_so_min=$(readlink $libdir/$so_file | awk -F'.so.' '{print $2}' | cut -d '.' -f2)
|
||||
old_so_maj=$(readlink $source_abi_dir/$so_file | awk -F'.so.' '{print $2}' | cut -d '.' -f1)
|
||||
old_so_min=$(readlink $source_abi_dir/$so_file | awk -F'.so.' '{print $2}' | cut -d '.' -f2)
|
||||
new_so_maj=$(readlink $libdir/$so_file | awk -F'\\.so\\.' '{print $2}' | cut -d '.' -f1)
|
||||
new_so_min=$(readlink $libdir/$so_file | awk -F'\\.so\\.' '{print $2}' | cut -d '.' -f2)
|
||||
old_so_maj=$(readlink $source_abi_dir/$so_file | awk -F'\\.so\\.' '{print $2}' | cut -d '.' -f1)
|
||||
old_so_min=$(readlink $source_abi_dir/$so_file | awk -F'\\.so\\.' '{print $2}' | cut -d '.' -f2)
|
||||
so_name_changed=$(grep "ELF SONAME changed" <<< "$output") || so_name_changed="No"
|
||||
function_summary=$(grep "functions summary" <<< "$output")
|
||||
variable_summary=$(grep "variables summary" <<< "$output")
|
||||
|
Loading…
x
Reference in New Issue
Block a user