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

Unified Diff: tests/gclient_scm_test.py

Issue 343523002: Refactor cache-updating code to eliminate unnecessary fetches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 6 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
« gclient_scm.py ('K') | « git_cache.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_scm_test.py
diff --git a/tests/gclient_scm_test.py b/tests/gclient_scm_test.py
index 0341229c37f775d0826f43501b3f6d5b457eed87..55bc9c365e5df808d4a4cac2c9612d5a163cf43e 100755
--- a/tests/gclient_scm_test.py
+++ b/tests/gclient_scm_test.py
@@ -24,8 +24,12 @@ from testing_support.super_mox import mox, StdoutCheck, SuperMoxTestBase
from testing_support.super_mox import TestCaseUtils
import gclient_scm
+import git_cache
import subprocess2
+# Disable global git cache
+git_cache.Mirror.SetCachePath(None)
+
# Shortcut since this function is used often
join = gclient_scm.os.path.join
@@ -1571,11 +1575,11 @@ class UnmanagedGitWrapperTestCase(BaseGitWrapperTestCase):
if __name__ == '__main__':
- if '-v' in sys.argv:
- logging.basicConfig(
- level=logging.DEBUG,
- format='%(asctime).19s %(levelname)s %(filename)s:'
- '%(lineno)s %(message)s')
+ level = logging.DEBUG if '-v' in sys.argv else logging.FATAL
+ logging.basicConfig(
+ level=level,
+ format='%(asctime).19s %(levelname)s %(filename)s:'
+ '%(lineno)s %(message)s')
unittest.main()
# vim: ts=2:sw=2:tw=80:et:
« gclient_scm.py ('K') | « git_cache.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698