diff --git a/script/determine-jobs.py b/script/determine-jobs.py index 1601496877..a078fd8f9b 100755 --- a/script/determine-jobs.py +++ b/script/determine-jobs.py @@ -244,7 +244,7 @@ def main() -> None: component for component in changed_components if (component_test_dir := tests_dir / component).exists() - and next(component_test_dir.glob("test.*.yaml"), None) is not None + and any(component_test_dir.glob("test.*.yaml")) ] # Build output