Chk_gen_eh_frame: exit with 1 upon failure
This commit is contained in:
parent
4811d68213
commit
faef68303e
2 changed files with 4 additions and 1 deletions
|
@ -386,7 +386,9 @@ def main():
|
||||||
# If we had some errors to report, let's report positive data too
|
# If we had some errors to report, let's report positive data too
|
||||||
reports.append("{} matched".format(len(matched)))
|
reports.append("{} matched".format(len(matched)))
|
||||||
print("{}: {}".format(test_name, "; ".join(reports)))
|
print("{}: {}".format(test_name, "; ".join(reports)))
|
||||||
|
return 1
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
sys.exit(main())
|
||||||
|
|
|
@ -23,3 +23,4 @@ fi
|
||||||
readelf -wF "$orig_path" ; \
|
readelf -wF "$orig_path" ; \
|
||||||
echo "===" ; \
|
echo "===" ; \
|
||||||
readelf -wF "$eh_path") | python $py_checker $*
|
readelf -wF "$eh_path") | python $py_checker $*
|
||||||
|
exit $?
|
||||||
|
|
Loading…
Reference in a new issue