nixos/test-driver: fix return value of subtest function

Mypy since version 1.10.0 complains about this:

> test_driver/driver.py:109: error: No return value expected  [return-value]
This commit is contained in:
Martin Weinelt 2024-06-06 00:49:35 +02:00
parent 2d9e3b2a22
commit ab897a8c62
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -106,7 +106,6 @@ class Driver:
with self.logger.subtest(name):
try:
yield
return True
except Exception as e:
self.logger.error(f'Test "{name}" failed with error: "{e}"')
raise e