From: Steven Hardy Date: Fri, 14 Sep 2012 09:34:35 +0000 (+0100) Subject: heat tests : bugfix utils cleanup X-Git-Tag: 2014.1~1415 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8357920281c017f316b1fc214ddb621efa5bc667;p=openstack-build%2Fheat-build.git heat tests : bugfix utils cleanup Initialize tries variable or we get a referenced before assignment error Change-Id: Ic8eb68ced893fb89844e81e895c766e8f8b04bee Signed-off-by: Steven Hardy --- diff --git a/heat/tests/functional/util.py b/heat/tests/functional/util.py index b039d193..092f8854 100644 --- a/heat/tests/functional/util.py +++ b/heat/tests/functional/util.py @@ -389,6 +389,7 @@ class Stack(object): c.delete_stack(**parameters) print 'Waiting for stack deletion to be completed' + tries = 0 while self.in_state('DELETE_IN_PROGRESS'): tries += 1 assert tries < 50