Merge: nixos test driver: drop wrong assertion (#431708)

This commit is contained in:
Maximilian Bosch
2025-08-07 13:19:00 +02:00
committed by GitHub
@@ -12,10 +12,7 @@ def perform_ocr_on_screenshot(screenshot_path: Path) -> str:
Perform OCR on a screenshot that contains text.
Returns a string with all words that could be found.
"""
variants = perform_ocr_variants_on_screenshot(screenshot_path, False)[0]
if len(variants) != 1:
raise MachineError(f"Received wrong number of OCR results: {len(variants)}")
return variants[0]
return perform_ocr_variants_on_screenshot(screenshot_path, False)[0]
def perform_ocr_variants_on_screenshot(