Patchwork D6452: tests: make run-tests exit non-zero if there are "errors"

login
register
mail settings
Submitter phabricator
Date May 29, 2019, 12:55 p.m.
Message ID <2f87c8dc7a07eb86abe3cf052610ffd8@localhost.localdomain>
Download mbox | patch
Permalink /patch/40258/
State Not Applicable
Headers show

Comments

phabricator - May 29, 2019, 12:55 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG15d5a2de44aa: tests: make run-tests exit non-zero if there are &quot;errors&quot; (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6452?vs=15280&id=15281

REVISION DETAIL
  https://phab.mercurial-scm.org/D6452

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: spectral, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -2912,7 +2912,7 @@ 
 
                 result = runner.run(suite)
 
-            if result.failures:
+            if result.failures or result.errors:
                 failed = True
 
             result.onEnd()