Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: client/tests/run_isolated_test.py

Issue 1233303003: Migrate and merge logging_utils from swarming_bot into client/utils. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Changed formatter Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/tests/run_isolated_test.py
diff --git a/client/tests/run_isolated_test.py b/client/tests/run_isolated_test.py
index 4b40c111ab5652f5d170977aa8c756e61d7a3102..bafee40d1cffe6645d6061e5c0021bd490da3e33 100755
--- a/client/tests/run_isolated_test.py
+++ b/client/tests/run_isolated_test.py
@@ -24,6 +24,7 @@ import isolateserver
import run_isolated
from depot_tools import auto_stub
from utils import file_path
+from utils import logging_utils
from utils import on_error
from utils import subprocess42
from utils import tools
@@ -66,6 +67,9 @@ class RunIsolatedTestBase(auto_stub.TestCase):
logging.debug(self.tempdir)
self.mock(run_isolated, 'make_temp_dir', self.fake_make_temp_dir)
self.mock(run_isolated.auth, 'ensure_logged_in', lambda _: None)
+ self.mock(
+ logging_utils.OptionParserWithLogging, 'logger_root',
+ logging.Logger('unittest'))
def tearDown(self):
for dirpath, dirnames, filenames in os.walk(self.tempdir, topdown=True):

Powered by Google App Engine
This is Rietveld 408576698