tools: exit(1) when test/build fail (#31247)
tools: exit(1) when test/build fail (#31247)

 
ngaut/tidb,ngaut/tidb,kyle-wang/tidb,pingcap/tidb,c4pt0r/tidb,c4pt0r/tidb,pingcap/tidb,ngaut/tidb,ngaut/tidb,pingcap/tidb,pingcap/tidb,c4pt0r/tidb,kyle-wang/tidb,c4pt0r/tidb,c4pt0r/tidb,kyle-wang/tidb,c4pt0r/tidb,ngaut/tidb,pingcap/tidb,pingcap/tidb,kyle-wang/tidb,ngaut/tidb,kyle-wang/tidb,kyle-wang/tidb