[Updated] D11082: dummyssh: use subprocess instead of os.call
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Jul 16 10:39:39 UTC 2021
Closed by commit rHG119673fb37aa: dummyssh: use subprocess instead of os.call (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11082?vs=29184&id=29330
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11082/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11082
AFFECTED FILES
tests/dummyssh
CHANGE DETAILS
diff --git a/tests/dummyssh b/tests/dummyssh
--- a/tests/dummyssh
+++ b/tests/dummyssh
@@ -3,6 +3,7 @@
from __future__ import absolute_import
import os
+import subprocess
import sys
os.chdir(os.getenv('TESTTMP'))
@@ -22,5 +23,5 @@
if os.name == 'nt':
# hack to make simple unix single quote quoting work on windows
hgcmd = hgcmd.replace("'", '"')
-r = os.system(hgcmd)
+r = subprocess.call(hgcmd, shell=True)
sys.exit(bool(r))
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210716/7318e1c5/attachment-0002.html>
More information about the Mercurial-patches
mailing list