From eb0f932b52dc9d8892876851b05b24debbd1e25d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 26 Aug 2022 17:36:03 +1000 Subject: [PATCH] autotest: remove global variable ... progress is no longer static and hasn't been for years --- Tools/autotest/common.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index fea4e1d7d8..9328d4c0f2 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -1474,8 +1474,6 @@ class AutoTest(ABC): build_opts={}): self.start_time = time.time() - global __autotest__ # FIXME; make progress a non-staticmethod - __autotest__ = self if binary is None: raise ValueError("Should always have a binary") @@ -1566,8 +1564,7 @@ class AutoTest(ABC): def progress(self, text, send_statustext=True): """Display autotest progress text.""" - global __autotest__ - delta_time = time.time() - __autotest__.start_time + delta_time = time.time() - self.start_time formatted_text = "AT-%06.1f: %s" % (delta_time, text) print(formatted_text) if (send_statustext and