From 70a4de68781167475172ecf62def9667039957a5 Mon Sep 17 00:00:00 2001 From: xster Date: Wed, 20 May 2020 21:38:37 -0700 Subject: [PATCH] Let run_tests.py just stream output (flutter/engine#18534) --- engine/src/flutter/shell/platform/android/BUILD.gn | 2 +- engine/src/flutter/testing/run_tests.py | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/BUILD.gn b/engine/src/flutter/shell/platform/android/BUILD.gn index 8869eadc95..2d40c673b9 100644 --- a/engine/src/flutter/shell/platform/android/BUILD.gn +++ b/engine/src/flutter/shell/platform/android/BUILD.gn @@ -463,7 +463,7 @@ action("robolectric_tests") { embedding_jar_path, ] + embedding_dependencies_jars - inputs = _jar_dependencies + inputs = _jar_dependencies + additional_jar_files _rebased_current_path = rebase_path(".") _rebased_jar_path = rebase_path(jar_path, root_build_dir) diff --git a/engine/src/flutter/testing/run_tests.py b/engine/src/flutter/testing/run_tests.py index bd84a36f29..b7a0cdd67b 100755 --- a/engine/src/flutter/testing/run_tests.py +++ b/engine/src/flutter/testing/run_tests.py @@ -38,14 +38,10 @@ def RunCmd(cmd, **kwargs): print 'Running command "%s"' % command_string start_time = time.time() - process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **kwargs) - (output, _) = process.communicate() + process = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, **kwargs) + process.communicate() end_time = time.time() - # Print the result no matter what. - for line in output.splitlines(): - print line - if process.returncode != 0: PrintDivider('!') raise Exception('Command "%s" exited with code %d' % (command_string, process.returncode))