fix check_bad commit.py gives wrong results (#38107)

fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar 2025-05-13 16:58:22 +02:00 committed by GitHub
parent a5cc7a67d7
commit 582d5e0e11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ if len(result.stderr) > 0:
else:
print(f"pytest failed to run: {{result.stderr}}")
exit(-1)
elif f"{target_test} FAILED" in result.stdout:
elif f"FAILED {target_test}" in result.stdout:
print("test failed")
exit(2)