[PATCH 2 of 2 V2] run-tests: convert the remaining os.system() call to Unicode

Matt Harbison mharbison72 at gmail.com
Mon Sep 17 01:15:17 EDT 2018


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1537153985 14400
#      Sun Sep 16 23:13:05 2018 -0400
# Node ID b2b5116fbe990c793e765879c3f7fb9575394ec8
# Parent  91531f9754a5f032fa635dc506091f23519bfdc3
run-tests: convert the remaining os.system() call to Unicode

I wasn't able to hit this path in 543a788eea2d, but I have now when I
accidentally left off `--local`.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -2976,7 +2976,7 @@ class TestRunner(object):
         makedirs(self._bindir)
 
         vlog("# Running", cmd)
-        if os.system(cmd) == 0:
+        if os.system(_strpath(cmd)) == 0:
             if not self.options.verbose:
                 try:
                     os.remove(installerrs)


More information about the Mercurial-devel mailing list