changeset 41586:7855a949b7c2

run-tests: allow spaces in the --view tool Most tools on Windows are in Program Files, and not necessarily on PATH.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 05 Feb 2019 13:30:48 -0500
parents 549af2fa089f
children ccaa52865fac
files tests/run-tests.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Tue Feb 05 09:37:23 2019 -0500
+++ b/tests/run-tests.py	Tue Feb 05 13:30:48 2019 -0500
@@ -1902,8 +1902,9 @@
                 pass
             elif self._options.view:
                 v = self._options.view
-                os.system(r"%s %s %s" %
-                          (v, _strpath(test.refpath), _strpath(test.errpath)))
+                subprocess.call(r'"%s" "%s" "%s"' %
+                                (v, _strpath(test.refpath),
+                                 _strpath(test.errpath)), shell=True)
             else:
                 servefail, lines = getdiff(expected, got,
                                            test.refpath, test.errpath)