diff tests/run-tests.py @ 52565:8adfaa5ad484

run-tests: align call argument on string The real hg path is bytes and need to be converted to align with the other arguments.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 19 Dec 2024 00:17:21 +0100
parents 3b63f90f351c
children 4f2bbad82e4b
line wrap: on
line diff
--- a/tests/run-tests.py	Thu Dec 19 00:16:30 2024 +0100
+++ b/tests/run-tests.py	Thu Dec 19 00:17:21 2024 +0100
@@ -4121,7 +4121,7 @@
     def _get_hg_module_policy(self):
         """return the module policy as seen by the "hg" binary"""
         cmd = [
-            self._real_hg,
+            _bytes2sys(self._real_hg),
             "debuginstall",
             "--template",
             "{hgmodulepolicy}",
@@ -4146,7 +4146,7 @@
     def _get_hg_bin_path(self):
         """return the path to the mercurial lib according to the "hg" binary"""
         cmd = [
-            self._real_hg,
+            _bytes2sys(self._real_hg),
             "debuginstall",
             "--template",
             "{hgmodules}",