aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/rcs.py
diff options
context:
space:
mode:
authorJohn Doe <jdoe@example.com>2009-06-14 17:27:18 +1000
committerJohn Doe <jdoe@example.com>2009-06-14 17:27:18 +1000
commit4029c15d863ea2d6a2ada5f2306b2c99dadcf75f (patch)
tree621965c54bca7821210659e725c80d3fa7e1635c /libbe/rcs.py
parent1e2bb2b79fbb7a3eeb3f0a86d520b2a01c64ad64 (diff)
downloadbugseverywhere-4029c15d863ea2d6a2ada5f2306b2c99dadcf75f.tar.gz
Distinguish tests for VCS which can't handle an uninitialised identity.
Diffstat (limited to 'libbe/rcs.py')
-rw-r--r--libbe/rcs.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/libbe/rcs.py b/libbe/rcs.py
index b86ef80..e9cd9ca 100644
--- a/libbe/rcs.py
+++ b/libbe/rcs.py
@@ -553,6 +553,8 @@ def setup_rcs_test_fixtures(testcase):
testcase.dir = Dir()
testcase.dirname = testcase.dir.path
+ testcase.rcs_supports_uninitialized_user_id = (
+ testcase.rcs.name not in ["git"])
testcase.rcs_supports_set_user_id = (
testcase.rcs.name not in ["None", "hg"])
@@ -615,6 +617,9 @@ class RCS_get_user_id_TestCase(RCSTestCase):
def test_gets_existing_user_id(self):
""" Should get the existing user ID. """
+ if not self.rcs_supports_uninitialized_user_id:
+ return
+
user_id = self.rcs.get_user_id()
self.failUnless(
user_id is not None,
@@ -627,7 +632,10 @@ class RCS_set_user_id_TestCase(RCSTestCase):
def setUp(self):
super(RCS_set_user_id_TestCase, self).setUp()
- self.prev_user_id = self.rcs.get_user_id()
+ if self.rcs_supports_uninitialized_user_id:
+ self.prev_user_id = self.rcs.get_user_id()
+ else:
+ self.prev_user_id = "Uninitialized identity <bogus@example.org>"
if self.rcs_supports_set_user_id:
self.test_new_user_id = "John Doe <jdoe@example.com>"