Skip to content

Commit f95a9da

Browse files
committed
fix lint
1 parent 41d8015 commit f95a9da

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎vunit/test/unit/test_test_suites.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from vunit.test.common import create_tempdir
1616
from vunit.simulator_interface import SimulatorInterface
1717

18+
1819
class TestTestSuites(TestCase):
1920
"""
2021
Test the test suites
@@ -128,8 +129,9 @@ def _test_exit_code(sim_ok=True, with_has_valid_func=False):
128129
""")
129130
sim_if = SimulatorInterface
130131
if with_has_valid_func:
132+
@staticmethod
131133
def func():
132-
return True
134+
return True
133135
sim_if.has_valid_exit_code = func
134136

135137
run = TestRun(simulator_if=sim_if,
@@ -138,5 +140,6 @@ def func():
138140
test_suite_name=None,
139141
test_cases=["test1"])
140142

141-
done, results = run._check_results(run._read_test_results(file_name=file_name), sim_ok) # pylint: disable=protected-access
143+
results = run._read_test_results(file_name=file_name) # pylint: disable=protected-access
144+
done, _ = run._check_results(results, sim_ok) # pylint: disable=protected-access
142145
return done

‎vunit/test_suites.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ def run(self, output_path, read_output):
182182
return results
183183

184184
def _check_results(self, results, sim_ok):
185+
"""
186+
Test the results and the exit code; return True the status of any test is not PASSED
187+
"""
185188
# If any test failed, return results
186189
for status in results.values():
187190
if status == FAILED:

0 commit comments

Comments
 (0)