From: Giacomo Travaglini Date: Thu, 11 Jun 2020 12:57:35 +0000 (+0100) Subject: ext: Remove dead code from runner.py X-Git-Tag: v20.1.0.0~570 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19f936492c76b03e00ab2554e560099c2ce77c4f;p=gem5.git ext: Remove dead code from runner.py This has been tested with vulture: https://pypi.org/project/vulture JIRA: https://gem5.atlassian.net/projects/GEM5/issues/GEM5-533 Change-Id: Ic851c3681a40b7e61ee53b81b17df52dc1289e9f Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30240 Maintainer: Bobby R. Bruce Tested-by: kokoro Reviewed-by: Hoa Nguyen --- diff --git a/ext/testlib/runner.py b/ext/testlib/runner.py index 9b096376f..7425e795d 100644 --- a/ext/testlib/runner.py +++ b/ext/testlib/runner.py @@ -39,11 +39,9 @@ # Authors: Sean Wilson import multiprocessing.dummy -import threading import traceback import testlib.helper as helper -import testlib.state as state import testlib.log as log from testlib.state import Status, Result @@ -169,9 +167,6 @@ class LibraryParallelRunner(RunnerPattern): def set_threads(self, threads): self.threads = threads - def _entrypoint(self, suite): - suite.runner(suite).run() - def test(self): pool = multiprocessing.dummy.Pool(self.threads) pool.map(lambda suite : suite.runner(suite).run(), self.testable) @@ -181,8 +176,6 @@ class LibraryParallelRunner(RunnerPattern): class BrokenFixtureException(Exception): def __init__(self, fixture, testitem, trace): - self.fixture = fixture - self.testitem = testitem self.trace = trace self.msg = ('%s\n'