Merge pull request #7739 from radarhere/test_image_results

Do not support using test-image-results to upload images after test failures
This commit is contained in:
Andrew Murray 2024-01-25 06:36:49 +11:00 committed by GitHub
commit 4175787c45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,13 +25,6 @@ if os.environ.get("SHOW_ERRORS"):
uploader = "show"
elif "GITHUB_ACTIONS" in os.environ:
uploader = "github_actions"
else:
try:
import test_image_results
uploader = "aws"
except ImportError:
pass
def upload(a: Image.Image, b: Image.Image) -> str | None:
@ -46,8 +39,6 @@ def upload(a: Image.Image, b: Image.Image) -> str | None:
a.save(os.path.join(tmpdir, "a.png"))
b.save(os.path.join(tmpdir, "b.png"))
return tmpdir
elif uploader == "aws":
return test_image_results.upload(a, b)
return None