Ensure bazel and java for the HEAD desugared library builder

Change-Id: I7aa0070e5cfd603e75b1381cad1ef880f2a01a45
diff --git a/tools/test.py b/tools/test.py
index 546a25f..9e2a3e2 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -192,6 +192,9 @@
     print('Building desugared library.')
     with utils.TempDir() as checkout_dir:
       archive_desugar_jdk_libs.CloneDesugaredLibrary('google', checkout_dir)
+      # Make sure bazel is extracted in third_party.
+      utils.DownloadFromGoogleCloudStorage(utils.BAZEL_SHA_FILE)
+      utils.DownloadFromGoogleCloudStorage(utils.JAVA8_SHA_FILE)
       (library_jar, maven_zip) = archive_desugar_jdk_libs.BuildDesugaredLibrary(checkout_dir)
       desugar_jdk_libs = os.path.join(desugar_jdk_libs_dir, os.path.basename(library_jar))
       shutil.copyfile(library_jar, desugar_jdk_libs)