From 75ec2eaa468899e57a80bc6f820e31229e55857b Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Wed, 11 Sep 2024 15:01:29 +0200 Subject: [PATCH] snippet comparision script now downloads test assets --- docs/snippets/compare_snippet_output.py | 6 ++++++ docs/snippets/snippets.toml | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/snippets/compare_snippet_output.py b/docs/snippets/compare_snippet_output.py index 122f829dcd86..2d3d66f7d906 100755 --- a/docs/snippets/compare_snippet_output.py +++ b/docs/snippets/compare_snippet_output.py @@ -136,6 +136,12 @@ def main() -> None: print("----------------------------------------------------------") + print("Downloading test assets…") + run(["pixi", "run", "python", "./tests/assets/download_test_assets.py"]) + print("") + + print("----------------------------------------------------------") + active_languages = ["rust"] if not args.no_cpp: active_languages.append("cpp") diff --git a/docs/snippets/snippets.toml b/docs/snippets/snippets.toml index c9c75ab6e988..535a82f4ca31 100644 --- a/docs/snippets/snippets.toml +++ b/docs/snippets/snippets.toml @@ -184,6 +184,7 @@ quick_start = [ # These examples don't have exactly the same implementation. # `$config_dir` will be replaced with the absolute path of `docs/snippets`. +# Note that the snippet comparison tool will automatically run `/tests/assets/download_test_assets.py` before running the snippets. [extra_args] "archetypes/asset3d_simple" = ["$config_dir/../../tests/assets/cube.glb"] "archetypes/asset3d_out_of_tree" = ["$config_dir/../../tests/assets/cube.glb"]