Need to make tearDown method detect if any servers exist before trying to work on them

Bug #938151 reported by Patrick Crews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kewpie
New
Undecided
Patrick Crews

Bug Description

20120222-033944 Traceback (most recent call last):
20120222-033944 File "/root/kewpie/lib/util/mysqlBaseTestCase.py", line 52, in tearDown
20120222-033944 for server in self.servers:
20120222-033944 TypeError: 'NoneType' object is not iterable

If a test should fail before it's servers are created / etc, the mysqlBaseTestCase's tearDown method will try to DROP/CREATE test databases for all servers. we should have a check to ensure we have servers before trying to shut them down.

Related branches

Changed in kewpie:
assignee: nobody → Patrick Crews (patrick-crews)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.