test: create cmd arg array for abidiff command line
This will allows us to reuse most of the command line in a future patch. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I039d628a0a1b6612c1e4d66395651cb0aa2255a4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4447 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
c1a6a7f2cc
commit
3e159ecf8e
@ -51,7 +51,13 @@ EOF
|
||||
continue
|
||||
fi
|
||||
|
||||
if ! output=$(abidiff "$source_abi_dir/$so_file" "$libdir/$so_file" --headers-dir1 "$source_abi_dir/../../include/" --headers-dir2 "$rootdir/include" --leaf-changes-only --suppressions $suppression_file --stat); then
|
||||
cmd_args=('abidiff'
|
||||
$source_abi_dir/$so_file $libdir/$so_file
|
||||
'--headers-dir1' $source_abi_dir/../../include
|
||||
'--headers-dir2' $rootdir/include
|
||||
'--leaf-changes-only' '--suppressions' $suppression_file)
|
||||
|
||||
if ! output=$("${cmd_args[@]}" --stat); then
|
||||
# remove any filtered out variables.
|
||||
output=$(sed "s/ [()][^)]*[)]//g" <<< "$output")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user