ext: Remove dead code from runner.py
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 11 Jun 2020 12:57:35 +0000 (13:57 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 18 Jun 2020 15:07:47 +0000 (15:07 +0000)
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 <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30240
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
ext/testlib/runner.py

index 9b096376f6d3d90849416a554dba0e3431307ca8..7425e795df07cafb93d5c8560b9fd61198e3441a 100644 (file)
 # 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'