Patchwork D10939: run-tests: unroll a non-so-one-liner

login
register
mail settings
Submitter phabricator
Date July 2, 2021, 10:37 p.m.
Message ID <differential-rev-PHID-DREV-sjmufmjpxnewllz3hzpv-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49253/
State Superseded
Headers show

Comments

phabricator - July 2, 2021, 10:37 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This is shorter and clearer.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, 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
@@ -3564,10 +3564,9 @@ 
                     f.write(b'py -3.%d "$@"\n' % sys.version_info[1])
 
             exedir, exename = os.path.split(sysexecutable)
-            vlog(
-                "# Modifying search path to find %s as %s in '%s'"
-                % (exename, pyexename, exedir)
-            )
+            msg = "# Modifying search path to find %s as %s in '%s'"
+            msg %= (exename, pyexename, exedir)
+            vlog(msg)
             path = os.environ['PATH'].split(os.pathsep)
             while exedir in path:
                 path.remove(exedir)