Skip to content

Commit

Permalink
Added test for _cvsEntriesContainStickyDates
Browse files Browse the repository at this point in the history
  • Loading branch information
jpommerening committed Oct 19, 2013
1 parent 2442b41 commit d158a5a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions master/buildbot/test/unit/test_steps_source_cvs.py
Expand Up @@ -63,6 +63,13 @@ def updateSourceProperty(prop, name):
self.assertEqual(props,
[('got_revision', '2012-09-09 12:09:33 +0000')])

def test_cvsEntriesContainStickyDates(self):
step = cvs.CVS(cvsroot="x", cvsmodule="m", mode='full', method='clean')
self.assertEqual(step._cvsEntriesContainStickyDates('D'),False)
self.assertEqual(step._cvsEntriesContainStickyDates('/file/1.1/Fri May 17 23:20:00//TMOZILLA_1_0_0_BRANCH\nD'),False)
self.assertEqual(step._cvsEntriesContainStickyDates('/file/1.1/Fri May 17 23:20:00//D2013.10.08.11.20.33\nD'),True)
self.assertEqual(step._cvsEntriesContainStickyDates('/file1/1.1/Fri May 17 23:20:00//\n/file2/1.1.2.3/Fri May 17 23:20:00//D2013.10.08.11.20.33\nD'),True)

def test_mode_full_clean(self):
self.setupStep(
cvs.CVS(cvsroot=":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot",
Expand Down

0 comments on commit d158a5a

Please sign in to comment.