Index: build/android/buildbot/bb_utils.py |
diff --git a/build/android/buildbot/bb_utils.py b/build/android/buildbot/bb_utils.py |
index 3c16cc2bc5b243d4db1c7b1eeb8f3c5a948862c1..b78fec036b69fe8e04edeeaea6c85ae3b73a4ca7 100644 |
--- a/build/android/buildbot/bb_utils.py |
+++ b/build/android/buildbot/bb_utils.py |
@@ -5,13 +5,13 @@ |
import json |
import optparse |
import os |
-import pipes |
import subprocess |
import sys |
import bb_annotations |
sys.path.append(os.path.join(os.path.dirname(__file__), '..')) |
+from devil.utils import cmd_helper |
from pylib import constants |
@@ -33,7 +33,7 @@ GSUTIL_PATH = os.path.join(BB_BUILD_DIR, 'third_party', 'gsutil', 'gsutil') |
def CommandToString(command): |
"""Returns quoted command that can be run in bash shell.""" |
- return ' '.join(map(pipes.quote, command)) |
+ return ' '.join(cmd_helper.SingleQuote(c) for c in command) |
def SpawnCmd(command, stdout=None, cwd=CHROME_SRC): |