~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockdir.py

  • Committer: John Arbash Meinel
  • Author(s): Mark Hammond
  • Date: 2008-09-09 17:02:21 UTC
  • mto: This revision was merged to the branch mainline in revision 3697.
  • Revision ID: john@arbash-meinel.com-20080909170221-svim3jw2mrz0amp3
An updated transparent icon for bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
            lf1.unlock()
191
191
        lock_base = lf2.transport.abspath(lf2.path)
192
192
        self.assertEqual(1, len(self._logged_reports))
 
193
        lock_url = lf2.transport.abspath(lf2.path)
193
194
        self.assertEqual('%s %s\n'
194
195
                         '%s\n%s\n'
195
 
                         'Will continue to try until %s\n',
 
196
                         'Will continue to try until %s, unless '
 
197
                         'you press Ctrl-C\n'
 
198
                         'If you\'re sure that it\'s not being '
 
199
                         'modified, use bzr break-lock %s',
196
200
                         self._logged_reports[0][0])
197
201
        args = self._logged_reports[0][1]
198
202
        self.assertEqual('Unable to obtain', args[0])
333
337
           unlocks the lockdir, allowing Lock2 to acquire the lock.
334
338
        """
335
339
 
 
340
        raise tests.KnownFailure(
 
341
            "timing dependency in lock tests (#213182)")
 
342
 
336
343
        wait_to_check_lock = Lock()
337
344
        wait_until_checked_lock = Lock()
338
345
 
406
413
        # There should be 2 reports, because the lock changed
407
414
        lock_base = lf2.transport.abspath(lf2.path)
408
415
        self.assertEqual(2, len(self._logged_reports))
409
 
 
 
416
        lock_url = lf2.transport.abspath(lf2.path)
410
417
        self.assertEqual('%s %s\n'
411
418
                         '%s\n%s\n'
412
 
                         'Will continue to try until %s\n',
 
419
                         'Will continue to try until %s, unless '
 
420
                         'you press Ctrl-C\n'
 
421
                         'If you\'re sure that it\'s not being '
 
422
                         'modified, use bzr break-lock %s',
413
423
                         self._logged_reports[0][0])
414
424
        args = self._logged_reports[0][1]
415
425
        self.assertEqual('Unable to obtain', args[0])
421
431
 
422
432
        self.assertEqual('%s %s\n'
423
433
                         '%s\n%s\n'
424
 
                         'Will continue to try until %s\n',
 
434
                         'Will continue to try until %s, unless '
 
435
                         'you press Ctrl-C\n'
 
436
                         'If you\'re sure that it\'s not being '
 
437
                         'modified, use bzr break-lock %s',
425
438
                         self._logged_reports[1][0])
426
439
        args = self._logged_reports[1][1]
427
440
        self.assertEqual('Lock owner changed for', args[0])