chromite: Separate vmlinux.debug from debug symbol
vmlinux.debug is the symbol that will be used for kdump on chromeOS.
Separate vmlinux.debug from the entire debug tarball so it's easier for
downloading from users or other service. Archive this symbol with the
existing vmlinuz.tar.xz so we don't have to create a new output.
BUG=b:279631876
TEST=./run_tests api/controller/artifacts_unittest.py
TEST=./run_tests service/artifacts_unittest.py
Change-Id: Ib1d497deff641300404c1e78c705c14289cdcda5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4617482
Commit-Queue: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Lizzy Presland <zland@google.com>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
diff --git a/api/controller/artifacts_unittest.py b/api/controller/artifacts_unittest.py
index 77bff40..0185548 100644
--- a/api/controller/artifacts_unittest.py
+++ b/api/controller/artifacts_unittest.py
@@ -124,7 +124,7 @@
"""Quick check that a validate only call does not execute any logic."""
patch = self.PatchObject(artifacts_svc, "ArchiveImages")
artifacts.BundleImageArchives(
- self.target_request, self.response, self.validate_only_config
+ self.sysroot_request, self.response, self.validate_only_config
)
patch.assert_not_called()
@@ -132,7 +132,7 @@
"""Test a mock call does not execute logic, returns mocked value."""
patch = self.PatchObject(artifacts_svc, "ArchiveImages")
artifacts.BundleImageArchives(
- self.target_request, self.response, self.mock_call_config
+ self.sysroot_request, self.response, self.mock_call_config
)
patch.assert_not_called()
self.assertEqual(len(self.response.artifacts), 2)
@@ -178,7 +178,7 @@
self.PatchObject(os.path, "exists", return_value=True)
artifacts.BundleImageArchives(
- self.target_request, self.response, self.api_config
+ self.sysroot_request, self.response, self.api_config
)
self.assertCountEqual(