mirror of
https://github.com/vale981/ray
synced 2025-03-12 06:06:39 -04:00
16 lines
311 B
Python
16 lines
311 B
Python
![]() |
from typing import Optional
|
||
|
|
||
|
from ray_release.config import Test
|
||
|
from ray_release.result import Result
|
||
|
|
||
|
|
||
|
def handle_result(
|
||
|
test: Test,
|
||
|
result: Result,
|
||
|
) -> Optional[str]:
|
||
|
|
||
|
if result.status != "finished":
|
||
|
return f"Test script did not finish successfully ({result.status})."
|
||
|
|
||
|
return None
|