From c2f219c95a4abbcd044b0e93f43a8271cf8b1627 Mon Sep 17 00:00:00 2001 From: Abhi <85984486+AbhiTheModder@users.noreply.github.com> Date: Sun, 18 Oct 2026 11:45:15 +0530 Subject: [PATCH] meson: guard the class-import test on the file's existence test/test_import.py is referenced but not committed on all branches, which makes meson configure abort on Windows with ERROR: File test/test_import.py does not exist. Wire the test only when the file is present. --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index db97661..3f0eb7f 100644 --- a/meson.build +++ b/meson.build @@ -115,8 +115,11 @@ if build_plugins install_dir: r2_plugindir, ) + # test_import.py is not always present (it is not committed yet on every + # branch); only wire the test when the file exists + fs = import('fs') python = find_program('python3', required: false) - if python.found() + if python.found() and fs.exists('test' / 'test_import.py') test('r2unity-class-import', python, args: [files('test/test_import.py'), core_plugin], )