# HG changeset patch # User Pierre-Yves David # Date 2021-07-06 10:42:32 # Node ID 9b1710c502305881f95fa14ab45e6d8db2b548eb # Parent 9d929f9cb9b43bf91d8f855fd4bc1d7733ecd708 check-code: stop forbidding return code result There is no explication of what is the intend of that check and what is the alternative. I suspect this comes from the transition to the "unified test" format circa 2010. With the non zero return explicitly listed in the output explicit $? checking became Redundant. However there is valid use case for checking $? so I am dropping this check. Differential Revision: https://phab.mercurial-scm.org/D10994 diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -215,7 +215,6 @@ utestpats = [ "use regex test output patterns instead of sed", ), (uprefix + r'(true|exit 0)', "explicit zero exit unnecessary"), - (uprefix + r'.*(?