Skip to content

Commit 249140a

Browse files
Ondřej Surýrkrejci
authored andcommitted
Dump the new libyang ABI dump if it differs from the previous one
1 parent 13a9250 commit 249140a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/abi-check.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ LC_ALL=C.UTF-8 PATH=/snap/bin:$PATH abi-dumper ./build/libyang.so -o ./build/lib
66
abi-compliance-checker -l libyang.so -old ./libyang.dump -new ./build/libyang.dump -s || status=$?
77
# Generate and dump text output
88
w3m -dump -O ascii -T text/html "$(find "compat_reports/${SONAME}" -name '*.html')"
9+
# Dump the new libyang ABI dump if it differs
10+
if [ "$status" -ne 0 ]; then
11+
echo "-- cut here --"
12+
cat ./build/libyang.dump
13+
echo "-- cut here --"
14+
fi
915
exit $status

0 commit comments

Comments
 (0)