Disable color when running x.py
By default, color output is enabled. Logging from build bots has "[1m[32m" at the output, which makes it harder to read.
Change-Id: Idb0d30c86c77ffb1cc1a7b15288c9f96bd621b8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5665607
Auto-Submit: Zequan Wu <zequanwu@google.com>
Reviewed-by: Arthur Eubanks <aeubanks@google.com>
Commit-Queue: Zequan Wu <zequanwu@google.com>
Cr-Commit-Position: refs/heads/main@{#1321915}
NOKEYCHECK=True
GitOrigin-RevId: bc97df3bc793e73c8f658033209e0e78613b62c9
diff --git a/build_rust.py b/build_rust.py
index 3614d52..1178fa1 100755
--- a/build_rust.py
+++ b/build_rust.py
@@ -452,10 +452,10 @@
def run(self, sub, args):
''' Run x.py subcommand with specified args. '''
os.chdir(RUST_SRC_DIR)
- cmd = [sys.executable, 'x.py', sub]
+ cmd = [sys.executable, 'x.py', sub] + args + ['--color', 'never']
if self._verbose and self._verbose > 0:
cmd.append('-' + self._verbose * 'v')
- RunCommand(cmd + args, setenv=True, env=self._env)
+ RunCommand(cmd, setenv=True, env=self._env)
os.chdir(CHROMIUM_DIR)
def get_env(self):