From 1793de9e461d2553ea63201228bfc3c07c0936a0 Mon Sep 17 00:00:00 2001 From: Harry Terkelsen Date: Mon, 17 Oct 2022 14:32:32 -0700 Subject: [PATCH] Suppress stdout when activating emsdk (flutter/engine#36808) --- engine/src/flutter/tools/activate_emsdk.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tools/activate_emsdk.py b/engine/src/flutter/tools/activate_emsdk.py index ad9a8bc131..30fd1b0d6d 100644 --- a/engine/src/flutter/tools/activate_emsdk.py +++ b/engine/src/flutter/tools/activate_emsdk.py @@ -21,14 +21,16 @@ def main(): try: subprocess.check_call([ sys.executable, EMSDK_PATH, 'install', EMSDK_VERSION - ]) + ], + stdout=subprocess.DEVNULL) except subprocess.CalledProcessError: print('Failed to install emsdk') return 1 try: subprocess.check_call([ sys.executable, EMSDK_PATH, 'activate', EMSDK_VERSION - ]) + ], + stdout=subprocess.DEVNULL) except subprocess.CalledProcessError: print('Failed to activate emsdk') return 1