Ticket #723 (closed defect: fixed)
buildbot.test.runs.test_db.Scheduling badly isolated
| Reported by: | dustin | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.8.0 |
| Version: | master | Keywords: | |
| Cc: |
Description
If you run any of these tests twice, they complain:
===============================================================================
[ERROR]: buildbot.test.runs.test_db.Scheduling.test_immed2
Traceback (most recent call last):
File "/home/dustin/code/buildbot/t/buildbot/buildbot/test/runs/test_db.py", line 366, in test_immed2
def test_immed2(self): self.test_immediate()
File "/home/dustin/code/buildbot/t/buildbot/buildbot/test/runs/test_db.py", line 299, in test_immediate
m, cm, sm = self.build_harness("db/scheduler/immediate")
File "/home/dustin/code/buildbot/t/buildbot/buildbot/test/runs/test_db.py", line 241, in build_harness
db.create_db(spec)
File "/home/dustin/code/buildbot/t/buildbot/buildbot/db.py", line 366, in create_db
raise DBAlreadyExistsError("Refusing to touch an existing database")
buildbot.db.DBAlreadyExistsError: Refusing to touch an existing database
Change History
Note: See
TracTickets for help on using
tickets.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
clean up buildbot.test.runs.test_db.Scheduling's isolation
fixes #723