tools/check: exit non-zero when the unit test fail (#32444)
tools/check: exit non-zero when the unit test fail (#32444)

close pingcap/tidb#32442
c4pt0r/tidb,kyle-wang/tidb,kyle-wang/tidb,ngaut/tidb,ngaut/tidb,ngaut/tidb,ngaut/tidb,pingcap/tidb,kyle-wang/tidb,c4pt0r/tidb,c4pt0r/tidb,c4pt0r/tidb,c4pt0r/tidb,c4pt0r/tidb,kyle-wang/tidb,kyle-wang/tidb,pingcap/tidb,pingcap/tidb,ngaut/tidb,pingcap/tidb,pingcap/tidb,kyle-wang/tidb,ngaut/tidb,pingcap/tidb