Migrate mb script to python3.
Change-Id: Ief72dd7f9c5ca65c6ce67d1784c6d8321554a07a Bug: b/216091827 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/271294 Reviewed-by: Evan Shrubsole <eshr@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Jeremy Leconte <jleconte@google.com> Cr-Commit-Position: refs/heads/main@{#37809}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
e51918f9ce
commit
3d38cd3c41
@ -5,4 +5,4 @@
|
||||
|
||||
base_dir=$(dirname "$0")
|
||||
|
||||
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/mb.py" "$@"
|
||||
PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/mb.py" "$@"
|
||||
|
@ -91,9 +91,9 @@ class FakeMBW(mb.WebRTCMetaBuildWrapper):
|
||||
abpath = self._AbsPath(path)
|
||||
self.files[abpath] = contents
|
||||
|
||||
def Call(self, cmd, env=None, buffer_output=True, stdin=None):
|
||||
def Call(self, cmd, env=None, capture_output=True, stdin=None):
|
||||
del env
|
||||
del buffer_output
|
||||
del capture_output
|
||||
del stdin
|
||||
self.calls.append(cmd)
|
||||
if self.cmds:
|
||||
@ -231,11 +231,11 @@ def CreateFakeMBW(files=None, win32=False):
|
||||
mbw.files[path] = contents
|
||||
if path.endswith('.runtime_deps'):
|
||||
|
||||
def FakeCall(cmd, env=None, buffer_output=True, stdin=None):
|
||||
def FakeCall(cmd, env=None, capture_output=True, stdin=None):
|
||||
# pylint: disable=cell-var-from-loop
|
||||
del cmd
|
||||
del env
|
||||
del buffer_output
|
||||
del capture_output
|
||||
del stdin
|
||||
mbw.files[path] = contents
|
||||
return 0, '', ''
|
||||
|
Reference in New Issue
Block a user