upload_prebuilts: upload debug symbols when available

If the debug symbols were produced separately from the prebuilts (using
FEATURES=separatedebug), upload the debug symbols to the gs bucket too.

BUG=chromium:423932
TEST=Run a trybot with separatedebug enabled. The UploadPrebuilts stage shows
the debug symbols being uploaded.

Change-Id: Ib1431fc57a8c37285885e1f6e081a84e115bf9fa
Reviewed-on: https://chromium-review.googlesource.com/229739
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
Tested-by: Bertrand Simonnet <bsimonnet@chromium.org>
diff --git a/scripts/upload_prebuilts_unittest.py b/scripts/upload_prebuilts_unittest.py
index 996f2d6..b2044d8 100755
--- a/scripts/upload_prebuilts_unittest.py
+++ b/scripts/upload_prebuilts_unittest.py
@@ -122,7 +122,9 @@
     self.PatchObject(prebuilt.os.path, 'exists', return_true=True)
     pkgs = [{ 'CPV': 'public1' }]
     result = prebuilt.GenerateUploadDict(base_local_path, gs_bucket_path, pkgs)
-    expected = { local_path: gs_bucket_path + '/public1.tbz2' }
+    expected = { local_path: gs_bucket_path + '/public1.tbz2',
+                local_path.replace('tbz2','debug.tbz2'): gs_bucket_path +
+                                   '/public1.debug.tbz2'}
     self.assertEqual(result, expected)
 
   def testDeterminePrebuiltConfHost(self):