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

Unified Diff: tests/gclient_scm_test.py

Issue 3028053: Add code to automatically svn cleanup during svn update. (Closed)
Patch Set: Created 10 years, 4 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
« no previous file with comments | « gclient_scm.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 4f971b2827eac31c6fe34bba025fa70ba9a5dceb..92ea2be91d819c403d2b425d28e15f135b269e47 100755
--- a/tests/gclient_scm_test.py
+++ b/tests/gclient_scm_test.py
@@ -255,6 +255,11 @@ class SVNWrapperTestCase(BaseTestCase):
}
gclient_scm.os.path.exists(gclient_scm.os.path.join(base_path, '.git')
).AndReturn(False)
+
+ # Verify no locked files.
+ gclient_scm.scm.SVN.CaptureStatus(gclient_scm.os.path.join(base_path, '.')
+ ).AndReturn([])
+
# Checkout or update.
gclient_scm.os.path.exists(base_path).AndReturn(True)
gclient_scm.scm.SVN.CaptureInfo(
@@ -295,6 +300,10 @@ class SVNWrapperTestCase(BaseTestCase):
gclient_scm.os.path.exists(gclient_scm.os.path.join(base_path, 'DEPS')
).AndReturn(False)
+ # Verify no locked files.
+ gclient_scm.scm.SVN.CaptureStatus(gclient_scm.os.path.join(base_path, '.')
+ ).AndReturn([])
+
# When checking out a single file, we issue an svn checkout and svn update.
files_list = self.mox.CreateMockAnything()
gclient_scm.scm.SVN.Run(
@@ -363,6 +372,10 @@ class SVNWrapperTestCase(BaseTestCase):
).AndReturn(True)
gclient_scm.os.remove(gclient_scm.os.path.join(base_path, 'DEPS'))
+ # Verify no locked files.
+ gclient_scm.scm.SVN.CaptureStatus(gclient_scm.os.path.join(base_path, '.')
+ ).AndReturn([])
+
# When checking out a single file, we issue an svn checkout and svn update.
files_list = self.mox.CreateMockAnything()
gclient_scm.scm.SVN.Run(
@@ -399,6 +412,10 @@ class SVNWrapperTestCase(BaseTestCase):
gclient_scm.os.path.exists(gclient_scm.os.path.join(base_path, '.svn')
).AndReturn(True)
+ # Verify no locked files.
+ gclient_scm.scm.SVN.CaptureStatus(gclient_scm.os.path.join(base_path, '.')
+ ).AndReturn([])
+
# Now we fall back on scm.update().
files_list = self.mox.CreateMockAnything()
gclient_scm.os.path.exists(gclient_scm.os.path.join(base_path, '.git')
« no previous file with comments | « gclient_scm.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698