Submitter | Matt Harbison |
---|---|
Date | Feb. 6, 2019, 2:35 a.m. |
Message ID | <4bad819762856a2a6b5c.1549420545@Envy> |
Download | mbox | patch |
Permalink | /patch/38469/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1902,8 +1902,9 @@ class TestResult(unittest._TextTestResul 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)