From 0f26e3cb6e104851e4acfb1fb59a2843f1eb8db6 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 13 Dec 2019 11:46:28 +0000 Subject: [PATCH] Allow images to be unsupported --- util/test/rdtest/shared/Texture_Zoo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/test/rdtest/shared/Texture_Zoo.py b/util/test/rdtest/shared/Texture_Zoo.py index a5d36a377..1c977b435 100644 --- a/util/test/rdtest/shared/Texture_Zoo.py +++ b/util/test/rdtest/shared/Texture_Zoo.py @@ -440,6 +440,11 @@ class Texture_Zoo(): ret: Tuple[rd.ReplayStatus, rd.ReplayController] = cap.OpenCapture(rd.ReplayOptions(), None) status, self.controller = ret + # Some packed formats can't be opened, allow that + if status == rd.ReplayStatus.ImageUnsupported: + rdtest.log.comment("Couldn't open {} - unsupported".format(file.name)) + continue + if status != rd.ReplayStatus.Succeeded: rdtest.log.error("Couldn't open {}".format(file.name)) failed = True