Patchwork [Bug,6661] New: run-tests.py: error: --with-hg must specify an executable hg script

login
register
mail settings
Submitter mercurial-bugs@mercurial-scm.org
Date March 8, 2022, 10:18 a.m.
Message ID <bug-6661-285@https.bz.mercurial-scm.org/>
Download mbox | patch
Permalink /patch/50698/
State New
Headers show

Comments

mercurial-bugs@mercurial-scm.org - March 8, 2022, 10:18 a.m.
https://bz.mercurial-scm.org/show_bug.cgi?id=6661

            Bug ID: 6661
           Summary: run-tests.py: error: --with-hg must specify an
                    executable hg script
           Product: Mercurial
           Version: 6.1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla@mercurial-scm.org
          Reporter: tk@giga.or.at
                CC: mercurial-devel@mercurial-scm.org
    Python Version: ---

At least with python 3.10, test-run-tests.t fails with:

Patch

--- /scratch/devel/py-mercurial/work/mercurial-6.1/tests/test-run-tests.t
+++ /scratch/devel/py-mercurial/work/mercurial-6.1/tests/test-run-tests.t.err
@@ -23,10 +23,9 @@ 
 #if symlink
   $ ln -s "/"bin"/"true hg
   $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
-  ^warning: --with-hg should specify an hg script, not: (true|coreutils)$ (re)
-  running 0 tests using 0 parallel processes 
-  
-  # Ran 0 tests, 0 skipped, 0 failed.
+  usage: run-tests.py [options] [tests]
+  run-tests.py: error: --with-hg must specify an executable hg script
+  [2]
   $ rm hg
 #endif