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

Unified Diff: tests/git_rebase_update_test.py

Issue 1498163002: Add better error messages to git_reparent_branch. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: fix test Created 5 years 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_reparent_branch.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/git_rebase_update_test.py
diff --git a/tests/git_rebase_update_test.py b/tests/git_rebase_update_test.py
index 976d9a6d0803d98852a32a6df96a9754e68078ad..e8d7d5f9029479cfd216b472dca2b1f84af3a38d 100755
--- a/tests/git_rebase_update_test.py
+++ b/tests/git_rebase_update_test.py
@@ -387,6 +387,14 @@ class GitRebaseUpdateTest(git_test_utils.GitRepoReadWriteTestBase):
M H I J K L
""")
+ def testReparentBranchWithoutUpstream(self):
+ self.repo.git('branch', 'nerp')
+ self.repo.git('checkout', 'nerp')
+
+ _, err = self.repo.capture_stdio(self.rp.main, ['branch_K'])
+
+ self.assertIn('Unable to determine nerp@{upstream}', err)
+
if __name__ == '__main__':
sys.exit(coverage_utils.covered_main((
« no previous file with comments | « git_reparent_branch.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698