Patchwork D1809: tests: switch test from '--config ui.editor=~/foo' to HGEDITOR=~/foo

login
register
mail settings
Submitter phabricator
Date Jan. 5, 2018, 3:48 a.m.
Message ID <abe9082c2519605180b7ad45fbdf70c0@localhost.localdomain>
Download mbox | patch
Permalink /patch/26549/
State Not Applicable
Headers show

Comments

phabricator - Jan. 5, 2018, 3:48 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG711149d8e676: tests: switch test from &#039;--config ui.editor=~/foo&#039; to HGEDITOR=~/foo (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1809?vs=4693&id=4696

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

AFFECTED FILES
  tests/test-install.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-install.t b/tests/test-install.t
--- a/tests/test-install.t
+++ b/tests/test-install.t
@@ -98,7 +98,7 @@ 
 #if execbit
   $ chmod 755 tools/testeditor.exe
 #endif
-  $ hg debuginstall --config ui.editor=~/tools/testeditor.exe
+  $ HGEDITOR="~/tools/testeditor.exe" hg debuginstall
   checking encoding (ascii)...
   checking Python executable (*) (glob)
   checking Python version (*) (glob)
@@ -116,7 +116,7 @@ 
   checking "re2" regexp engine \((available|missing)\) (re)
   checking templates (*mercurial?templates)... (glob)
   checking default template (*mercurial?templates?map-cmdline.default) (glob)
-  checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
+  checking commit editor... ($TESTTMP/tools/testeditor.exe)
   checking username (test)
   no problems detected