tests/run-tests.py
changeset 47583 05abe1ff1edd
parent 47577 2ee81806831f
child 47584 ee1fc8f970e6
--- a/tests/run-tests.py	Sat Jul 10 17:19:07 2021 +0200
+++ b/tests/run-tests.py	Fri Jul 09 17:06:53 2021 +0200
@@ -728,7 +728,9 @@
         ):
             parser.error('--with-hg must specify an executable hg script')
         if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']:
-            sys.stderr.write('warning: --with-hg should specify an hg script\n')
+            msg = 'warning: --with-hg should specify an hg script, not: %s\n'
+            msg %= _bytes2sys(os.path.basename(options.with_hg))
+            sys.stderr.write(msg)
             sys.stderr.flush()
 
     if (options.chg or options.with_chg) and WINDOWS: