Changeset 45 for mergebot/trunk


Ignore:
Timestamp:
Feb 23, 2010 5:31:18 PM (15 years ago)
Author:
retracile
Message:

Mergebot: get the tests to behave a bit better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mergebot/trunk/utils/test.py

    r44 r45  
    6161        while time.time() - start < timeout:
    6262            try:
    63                 tc.reload()
     63                #tc.reload() # This appears to re-POST
     64                tc.go(b.get_url())
    6465                tc.find(search)
    6566                return
     
    7273        while time.time() - start < timeout:
    7374            try:
    74                 tc.reload()
     75                #tc.reload() # This appears to re-POST
     76                tc.go(b.get_url())
    7577                tc.notfind(search)
    7678                return
     
    104106        self.go_to_mergebot()
    105107        tc.formvalue('ops-%s' % ticket_id, 'ticket', ticket_id) # Essentially a noop to select the right form
    106         print "submitting rebranch request for %s" % (ticket_id)
    107108        tc.submit('Rebranch')
    108109        self.wait_until_find('Nothing in the queue', timeout)
     
    279280    suite.addTest(MergeBotTestNoVersion())
    280281    suite.addTest(MergeBotTestBranch())
    281     #suite.addTest(MergeBotTestRebranch())
     282    suite.addTest(MergeBotTestRebranch())
    282283    suite.addTest(MergeBotTestCheckMerge())
     284    suite.addTest(MergeBotTestMerge())
    283285    suite.addTest(MergeBotTestSingleUseCase())
    284     suite.addTest(MergeBotTestMerge())
    285286    return suite
    286287
Note: See TracChangeset for help on using the changeset viewer.