Patchwork D6001: contrib: also linkify tracebacks in compilation output when using hg-test-mode

login
register
mail settings
Submitter phabricator
Date Feb. 25, 2019, 1:38 a.m.
Message ID <0b7f6c93187d88384204b009f2b54084@localhost.localdomain>
Download mbox | patch
Permalink /patch/38918/
State Not Applicable
Headers show

Comments

phabricator - Feb. 25, 2019, 1:38 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb6c062bb4be3: contrib: also linkify tracebacks in compilation output when using hg-test-mode (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6001?vs=14184&id=14229

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

AFFECTED FILES
  contrib/hg-test-mode.el

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/contrib/hg-test-mode.el b/contrib/hg-test-mode.el
--- a/contrib/hg-test-mode.el
+++ b/contrib/hg-test-mode.el
@@ -54,6 +54,11 @@ 
   (run-hooks 'hg-test-mode-hook))
 
 (with-eval-after-load "compile"
+  ;; Link to Python sources in tracebacks in .t failures.
+  (add-to-list 'compilation-error-regexp-alist-alist
+               '(hg-test-output-python-tb
+                 "^\\+ +File ['\"]\\([^'\"]+\\)['\"], line \\([0-9]+\\)," 1 2))
+  (add-to-list 'compilation-error-regexp-alist 'hg-test-output-python-tb)
   ;; Link to source files in test-check-code.t violations.
   (add-to-list 'compilation-error-regexp-alist-alist
                '(hg-test-check-code-output