Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f3b7ed4

Browse files
authored
Let run_tests.py just stream output (#18534)
1 parent 72f7a7c commit f3b7ed4

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

shell/platform/android/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ action("robolectric_tests") {
463463
embedding_jar_path,
464464
] + embedding_dependencies_jars
465465

466-
inputs = _jar_dependencies
466+
inputs = _jar_dependencies + additional_jar_files
467467

468468
_rebased_current_path = rebase_path(".")
469469
_rebased_jar_path = rebase_path(jar_path, root_build_dir)

testing/run_tests.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ def RunCmd(cmd, **kwargs):
3838
print 'Running command "%s"' % command_string
3939

4040
start_time = time.time()
41-
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **kwargs)
42-
(output, _) = process.communicate()
41+
process = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, **kwargs)
42+
process.communicate()
4343
end_time = time.time()
4444

45-
# Print the result no matter what.
46-
for line in output.splitlines():
47-
print line
48-
4945
if process.returncode != 0:
5046
PrintDivider('!')
5147
raise Exception('Command "%s" exited with code %d' % (command_string, process.returncode))

0 commit comments

Comments
 (0)