artifacts: fix path to debug breakpad symbols archive
The path didn't include the chroot and the function itself was naive and
didn't understand a path that didn't exist.
BUG=b:187790219
TEST=unit tests
Force-Relevant-Builds: all
Change-Id: Iae2025197704bf27825c2c4aba6424c7db680b2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/2953638
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
Tested-by: George Engelbrecht <engeg@google.com>
Commit-Queue: George Engelbrecht <engeg@google.com>
diff --git a/api/controller/artifacts.py b/api/controller/artifacts.py
index 89f123a..a7e6bf5 100644
--- a/api/controller/artifacts.py
+++ b/api/controller/artifacts.py
@@ -708,7 +708,7 @@
return controller.RETURN_CODE_COMPLETED_UNSUCCESSFULLY
with chroot.tempdir() as symbol_tmpdir, chroot.tempdir() as dest_tmpdir:
- breakpad_dir = os.path.join('/build', build_target.name,
+ breakpad_dir = os.path.join(chroot.path, 'build', build_target.name,
'usr/lib/debug/breakpad')
# Call list on the atifacts.GatherSymbolFiles generator function to
# materialize and consume all entries so that all are copied to