Commit cfb812e3 authored by Jakob Kummerow's avatar Jakob Kummerow Committed by Commit Bot

[respect] Replace insensitive terms in gm.py

No-Try: true
Bug: v8:10619
Change-Id: I5c428bf47f2f6923aa88a8407d62d9480aa954fe
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2257222
Auto-Submit: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68460}
parent 74f5de4f
...@@ -173,14 +173,14 @@ def _CallWithOutput(cmd): ...@@ -173,14 +173,14 @@ def _CallWithOutput(cmd):
print("# %s" % cmd) print("# %s" % cmd)
# The following trickery is required so that the 'cmd' thinks it's running # The following trickery is required so that the 'cmd' thinks it's running
# in a real terminal, while this script gets to intercept its output. # in a real terminal, while this script gets to intercept its output.
master, slave = pty.openpty() parent, child = pty.openpty()
p = subprocess.Popen(cmd, shell=True, stdin=slave, stdout=slave, stderr=slave) p = subprocess.Popen(cmd, shell=True, stdin=child, stdout=child, stderr=child)
os.close(slave) os.close(child)
output = [] output = []
try: try:
while True: while True:
try: try:
data = os.read(master, 512).decode('utf-8') data = os.read(parent, 512).decode('utf-8')
except OSError as e: except OSError as e:
if e.errno != errno.EIO: raise if e.errno != errno.EIO: raise
break # EIO means EOF on some systems break # EIO means EOF on some systems
...@@ -191,7 +191,7 @@ def _CallWithOutput(cmd): ...@@ -191,7 +191,7 @@ def _CallWithOutput(cmd):
sys.stdout.flush() sys.stdout.flush()
output.append(data) output.append(data)
finally: finally:
os.close(master) os.close(parent)
p.wait() p.wait()
return p.returncode, "".join(output) return p.returncode, "".join(output)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment