Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4556)

Unified Diff: build/android/pylib/chrome_test_server_spawner.py

Issue 10960050: Remove 'shell=True' in Popen and directly execute testserver.py (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove shell=True Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/chrome_test_server_spawner.py
diff --git a/build/android/pylib/chrome_test_server_spawner.py b/build/android/pylib/chrome_test_server_spawner.py
index 1766a7731a644a6d2fe3fc6d595944085ae23491..30de65f7a6e393162b58dc17be7b61cd8dc9cbed 100644
--- a/build/android/pylib/chrome_test_server_spawner.py
+++ b/build/android/pylib/chrome_test_server_spawner.py
@@ -13,6 +13,7 @@ import json
import logging
import os
import select
+import shlex
import struct
import subprocess
import threading
@@ -212,7 +213,8 @@ class TestServerThread(threading.Thread):
'testserver.py'),
' '.join(self.command_line))
logging.info(command)
- self.process = subprocess.Popen(command, shell=True)
+ args = shlex.split(command)
Isaac (away) 2012/09/24 07:30:46 Thanks! We might be able to avoid shlex too, if c
+ self.process = subprocess.Popen(args)
if self.process:
if self.pipe_out:
self.is_ready = self._WaitToStartAndGetPortFromTestServer()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698