Mercurial > hg
changeset 41842:28842adf8ed5
hghave: skip emacs tests on 24.3 and earlier
Turns out with-eval-after-load is new in 24.4.
Differential Revision: https://phab.mercurial-scm.org/D6074
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 04 Mar 2019 18:11:50 -0500 |
parents | b1d07f4614a6 |
children | 25420df87903 |
files | tests/hghave.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hghave.py Tue Mar 05 03:33:41 2019 +0530 +++ b/tests/hghave.py Mon Mar 04 18:11:50 2019 -0500 @@ -825,4 +825,7 @@ @check('emacs', 'GNU Emacs') def has_emacs(): - return matchoutput('emacs --version', b'GNU Emacs') + # Our emacs lisp uses `with-eval-after-load` which is new in emacs + # 24.4, so we allow emacs 24.4, 24.5, and 25+ (24.5 was the last + # 24 release) + return matchoutput('emacs --version', b'GNU Emacs 2(4.4|4.5|5|6|7|8|9)')