Fix client tests not running on Forge

This was introduced by the FG6 update - the cctest.client property
didn't get set, and so tests never started!
This commit is contained in:
Jonathan Coates
2023-07-22 19:40:50 +01:00
parent 90ed0b24e7
commit dd08d1ec8e
2 changed files with 26 additions and 8 deletions
+5 -3
View File
@@ -114,10 +114,12 @@ def main():
images: list[Image] = []
for project, dir in {
"Forge": "projects/forge",
"Fabric": "projects/fabric",
"Forge": "projects/forge/build/gametest/runGametestClient",
"Fabric": "projects/fabric/build/gametest/runGametestClient",
"Fabric (+Sodium)": "projects/fabric/build/gametest/runGametestClientWithSodium",
"Fabric (+Iris)": "projects/fabric/build/gametest/runGametestClientWithIris",
}.items():
for file in sorted(pathlib.Path(dir).glob("build/gametest/*/screenshots/*.png")):
for file in sorted(pathlib.Path(dir).glob("screenshots/*.png")):
name = [project, *(_normalise_id(x) for x in file.stem.split("."))]
mtime = datetime.fromtimestamp(file.stat().st_mtime, tz=timezone.utc)