Patchwork D6759: run-tests: error out on `--local --with-[c]hg`

login
register
mail settings
Submitter phabricator
Date Aug. 27, 2019, 9 p.m.
Message ID <05544bfb0273a9158c9a62494ab0bde6@localhost.localdomain>
Download mbox | patch
Permalink /patch/41416/
State Not Applicable
Headers show

Comments

phabricator - Aug. 27, 2019, 9 p.m.
Closed by commit rHGfb84730d1c5a: run-tests: error out on `--local --with-[c]hg` (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6759?vs=16302&id=16324

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6759/new/

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

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: martinvonz, #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
@@ -493,6 +493,8 @@ 
             sys.stderr.write('warning: --with-hg should specify an hg script\n')
             sys.stderr.flush()
     if options.local:
+        if options.with_hg or options.with_chg:
+            parser.error('--local cannot be used with --with-hg or --with-chg')
         testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0])))
         reporootdir = os.path.dirname(testdir)
         pathandattrs = [(b'hg', 'with_hg')]