Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profusion-mobi.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CKz2FeP1TP6jP6nXfauBNTtWfHd43d7gltOJOnyJjgw=; b=IvxkUOOYr2It44NJLX7SqDVSpbmFO3+2K7/97sMIUR42e7I3rcGVPFNlrGbSJH1wlG /mlMumu1cL2cC6wxDjRz4a5QWWiFGCNsL/dvPE6P7T0FzfzmwqxEgGsNVbu3VnW0LoP6 z0FYs2+YjlPmYMLnRaNQ+vy2Y0GzAtsZEnFhzZKDoDtNxQ91S7KToj3BAGeXAo3eAaSG 7Fuvbpsb3E+OWz8hkyu+Vmx1UZDVTPYYM8Y96+yebQySPFvVfivoC1weJbbTmaQpTATX ZlUhREkPY858oQqoxj4azRIb0gJtousnBaE4z0Mjryju9aD+N0lc5+VusKhacbn+7MrF cvaA== From: Guilherme Campos Camargo Date: Wed, 28 Mar 2018 21:08:27 -0300 Message-Id: <20180329000832.12268-12-guicc@profusion.mobi> In-Reply-To: <20180329000832.12268-1-guicc@profusion.mobi> References: <20180329000832.12268-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 11/16] Properly quit Selenium driver when SeleniumSession is deleted List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org Call `driver.quit()` when SeleniumContainerSession.__del__() method gets called. Signed-off-by: Guilherme Campos Camargo --- engine/tests/Functional.fuegotest/test_run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/tests/Functional.fuegotest/test_run.py b/engine/tests/Functional.fuegotest/test_run.py index 09b3a95..99bd309 100755 --- a/engine/tests/Functional.fuegotest/test_run.py +++ b/engine/tests/Functional.fuegotest/test_run.py @@ -428,6 +428,10 @@ class SeleniumContainerSession(): LOGGER.debug('Started a Selenium Session on %s', self.root_url) return True + def __del__(self): + if self.driver: + self.driver.quit() + def main(): DEFAULT_TIMEOUT = 120 -- 2.16.2