Add acloud_test par to general-tests zip.
Bug: 110430047
Test: m general-tests
atest acloud_test
Change-Id: Iab52e175d1eb95ab8133573d730c9cfa73881034
diff --git a/acloud_test.py b/acloud_test.py
index fb8bf05..2ba43f2 100644
--- a/acloud_test.py
+++ b/acloud_test.py
@@ -16,10 +16,25 @@
"""Main entry point for all of acloud's unittest."""
from importlib import import_module
+import logging
import os
import sys
import unittest
+# Needed to silence oauth2client.
+# This is a workaround to get rid of below warning message:
+# 'No handlers could be found for logger "oauth2client.contrib.multistore_file'
+# TODO(b/112803893): Remove this code once bug is fixed.
+OAUTH2_LOGGER = logging.getLogger('oauth2client.contrib.multistore_file')
+OAUTH2_LOGGER.setLevel(logging.CRITICAL)
+OAUTH2_LOGGER.addHandler(logging.FileHandler("/dev/null"))
+
+# Setup logging to be silent so unittests can pass through TF.
+ACLOUD_LOGGER = "acloud"
+logger = logging.getLogger(ACLOUD_LOGGER)
+logger.setLevel(logging.CRITICAL)
+logger.addHandler(logging.FileHandler("/dev/null"))
+
def GetTestModules():
"""Return list of testable modules.