Skip to content

Commit 9be3410

Browse files
committed
ci: probe round 4
1 parent 3aef28c commit 9be3410

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/dscan-nested.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ jobs:
5050
for t in ["23.8333", "23.85", "23.8667", "23.88", "23.9", "20.01", "20.0", "12.0"]:
5151
shutil.rmtree("snapshots", ignore_errors=True)
5252
r = subprocess.run("npx -y hyperframes@0.8.223 snapshot --at %s --no-end --describe false" % t, shell=True, capture_output=True, text=True)
53-
pngs = sorted(f for f in glob.glob("snapshots/**/*.png", recursive=True) if "contact" not in f)
53+
import re
54+
out = r.stdout + r.stderr
55+
m = re.search(r"(\S*)[\\/]contact-sheet\.jpg", out)
56+
d = m.group(1) if m else "snapshots"
57+
pngs = sorted(f for f in glob.glob(d + "/**/*.png", recursive=True) + glob.glob("**/snapshots/**/*.png", recursive=True) if "contact" not in f)
58+
if not pngs: print(t, "STDOUT", out[:600].replace("\n", " | "))
5459
if not pngs:
5560
print(t, "NO PNG; exit", r.returncode, (r.stdout + r.stderr)[-300:].replace("\n", " | "))
5661
continue

0 commit comments

Comments
 (0)