testing: assign variable before access
authorGregory Szorc <gps@mozilla.com>
Mon, 19 Jan 2015 16:53:20 -0500
changeset 360149 0d7b06decf3c04d2d569643c46baa73f3e1692dd
parent 360148 5ec8aa1e605312902dcff70481108476a09c8fe4
child 360150 29ead5f151afbe528908991ca49204d4dc1ff13b
push id16998
push userrwood@mozilla.com
push dateMon, 02 May 2016 19:42:03 +0000
testing: assign variable before access
testing/vcttesting/mozreview.py
--- a/testing/vcttesting/mozreview.py
+++ b/testing/vcttesting/mozreview.py
@@ -90,17 +90,18 @@ class MozReview(object):
         if not mercurial_port:
             mercurial_port = get_available_port()
 
         bugzilla_url = self._docker.start_mozreview(cluster=self._name,
                 hostname=None, http_port=bugzilla_port,
                 db_image=db_image, web_image=web_image,
                 verbose=verbose)[0]
 
-        bugzilla = self.get_bugzilla(bugzilla_url)
+        self.bugzilla_url = bugzilla_url
+        bugzilla = self.get_bugzilla()
 
         rb = MozReviewBoard(self._path, bugzilla_url=bugzilla_url)
         rb.create()
         reviewboard_pid = rb.start(reviewboard_port)
 
         reviewboard_url = 'http://localhost:%s/' % reviewboard_port
 
         self.bugzilla_url = bugzilla_url