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

Unified Diff: tests/git_common_test.py

Issue 1527403002: Better error checking in git freeze (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Add a test Created 4 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
« no previous file with comments | « git_common.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/git_common_test.py
diff --git a/tests/git_common_test.py b/tests/git_common_test.py
index 8e223c53d34fb647314cdf18928c705ef17f15b0..3f2a49a61fa9ae54d56c67aa8265b2efd7f1243f 100755
--- a/tests/git_common_test.py
+++ b/tests/git_common_test.py
@@ -859,6 +859,17 @@ class GitFreezeThaw(git_test_utils.GitRepoReadWriteTestBase):
self.repo.run(inner)
+ def testAddError(self):
+ def inner():
+ self.repo.git('checkout', '-b', 'unreadable_file_branch')
+ with open('bad_file', 'w') as f:
+ f.write('some text')
+ os.chmod('bad_file', 0111)
+ ret = self.repo.run(self.gc.freeze)
+ self.assertIn('Failed to index some unindexed files.', ret)
+
+ self.repo.run(inner)
+
class GitMakeWorkdir(git_test_utils.GitRepoReadOnlyTestBase, GitCommonTestBase):
def setUp(self):
« no previous file with comments | « git_common.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698