Re-land "[dev-util] Add symbolicate_dump endpoint to dev server"
This reverts commit 50fe427cb8cebf7dca441e92463c407cb90fddf3.
Add an endpoint to the dev server that will symbolicate a minidump.
BUG=chromium-os:29850
TEST=unit
TEST=run dev server, use curl to make it download some artifacts; check to
TEST=see that debug symbols are staged in static/archive
TEST=once symbols are staged, run the dev server in your
TEST=chroot and use curl with a minidump file like this:
TEST= curl -F minidump=@/home/cmasone/chromeos/phooey/powerd.20120424.141235.1005.dmp http://localhost:8080/symbolicate_dump
Change-Id: Ib9c11afd780aea5a665358b43f03a210ecc83482
Reviewed-on: https://gerrit.chromium.org/gerrit/21541
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Scott Zawalski <scottz@chromium.org>
Commit-Ready: Scott Zawalski <scottz@chromium.org>
diff --git a/downloader_unittest.py b/downloader_unittest.py
index 693689a..51182ac 100755
--- a/downloader_unittest.py
+++ b/downloader_unittest.py
@@ -12,7 +12,7 @@
import tempfile
import unittest
-import artifact_download
+import downloadable_artifact
import devserver
import devserver_util
import downloader
@@ -56,7 +56,7 @@
artifacts = []
for index in range(5):
- artifact = self.mox.CreateMock(artifact_download.DownloadableArtifact)
+ artifact = self.mox.CreateMock(downloadable_artifact.DownloadableArtifact)
# Make every other artifact synchronous.
if index % 2 == 0:
artifact.Synchronous = lambda: True
@@ -72,7 +72,7 @@
tempfile.mkdtemp(suffix=mox.IgnoreArg()).AndReturn(self._work_dir)
devserver_util.GatherArtifactDownloads(
self._work_dir, self.archive_url_prefix, self.build,
- self._work_dir).AndReturn(artifacts)
+ self._work_dir, self._work_dir).AndReturn(artifacts)
for index, artifact in enumerate(artifacts):
if index % 2 == 0: