未验证 提交 8a096d64 编写于 作者: T Tong Mu 提交者: GitHub

ci: Print output in case of compile error (#23522)

* Print compile error

* Better comment

* Update run_tests.py
上级 e3e3b2b6
......@@ -214,7 +214,14 @@ def SnapshotTest(build_dir, dart_file, kernel_file_output, verbose_dart_snapshot
if verbose_dart_snapshot:
RunCmd(snapshot_command, cwd=buildroot_dir)
else:
subprocess.check_output(snapshot_command, cwd=buildroot_dir)
try:
subprocess.check_output(snapshot_command, cwd=buildroot_dir)
except subprocess.CalledProcessError as error:
# CalledProcessError's string doesn't print the output. Print it before
# the crash for easier inspection.
print('Error occurred from the subprocess, with the output:')
print(error.output)
raise
assert os.path.exists(kernel_file_output)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册