summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2020-03-09 16:42:51 -0700
committerDan Albert <danalbert@google.com>2020-03-09 16:42:51 -0700
commit17caf7223ae326b4f3ee7fcacf6a011be8445e48 (patch)
treef7a15779bffcbb024aabd3d3f62be55eeafe4901
parentdb669320a80553c85a1e7f860f158a21ae53d02b (diff)
downloadbinutils-17caf7223ae326b4f3ee7fcacf6a011be8445e48.tar.gz
Copy logs to dist directory even on success.
Hard to figure out what's failing when we don't know what success looks like... Test: None Bug: None Change-Id: I567eda8750ee2ff4059fe00f927718158672e3ce
-rwxr-xr-xdo_build.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/do_build.py b/do_build.py
index 1067c99c..3490ba49 100755
--- a/do_build.py
+++ b/do_build.py
@@ -274,10 +274,8 @@ def main():
install_timer = ndk.timer.Timer()
with install_timer:
install(args.jobs, args.arch, args.host, install_dir)
- except subprocess.CalledProcessError:
- copy_logs_to_dist_dir(Path(build_dir), Path(dist_dir) / 'logs')
- raise
finally:
+ copy_logs_to_dist_dir(Path(build_dir), Path(dist_dir) / 'logs')
chdir(orig_dir)
package_timer = ndk.timer.Timer()