comparison tests/hghave.py @ 47302:338623a2ebf2

hghave: make error output easier to diagnose I had a typo that meant the new bash check was throwing an exception (due to a missing argument), but it was very hard to diagnose without this change. Differential Revision: https://phab.mercurial-scm.org/D10733
author Augie Fackler <augie@google.com>
date Tue, 18 May 2021 13:34:06 -0400
parents 97f04eaafa65
children a1e91a87a7c8
comparison
equal deleted inserted replaced
47301:97f04eaafa65 47302:338623a2ebf2
102 continue 102 continue
103 103
104 check, desc = checks[feature] 104 check, desc = checks[feature]
105 try: 105 try:
106 available = check() 106 available = check()
107 except Exception: 107 except Exception as e:
108 result['error'].append('hghave check failed: %s' % feature) 108 result['error'].append('hghave check %s failed: %r' % (feature, e))
109 continue 109 continue
110 110
111 if not negate and not available: 111 if not negate and not available:
112 result['skipped'].append('missing feature: %s' % desc) 112 result['skipped'].append('missing feature: %s' % desc)
113 elif negate and available: 113 elif negate and available: