summaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreterobjects.py
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-07-31 17:18:42 +1000
committerDylan Baker <dylan@pnwbakers.com>2024-08-27 08:43:32 -0700
commit3c0de471228420c333bb98be35a28705d0ec063d (patch)
treee6c69261378b2cf564bc0457e9d01bfca0a05130 /mesonbuild/interpreter/interpreterobjects.py
parent75e5ca58374fc7d070a6e34822046391cc5a24e5 (diff)
downloadmeson-3c0de471228420c333bb98be35a28705d0ec063d.tar.gz
Allow external programs in test()'s 'args' parameter
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: https://github.com/mesonbuild/meson/issues/3552 Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'mesonbuild/interpreter/interpreterobjects.py')
-rw-r--r--mesonbuild/interpreter/interpreterobjects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py
index d5c1efaa8..bbc5b8608 100644
--- a/mesonbuild/interpreter/interpreterobjects.py
+++ b/mesonbuild/interpreter/interpreterobjects.py
@@ -753,7 +753,7 @@ class Test(MesonInterpreterObject):
exe: T.Union[ExternalProgram, build.Executable, build.CustomTarget, build.CustomTargetIndex],
depends: T.List[T.Union[build.CustomTarget, build.BuildTarget]],
is_parallel: bool,
- cmd_args: T.List[T.Union[str, mesonlib.File, build.Target]],
+ cmd_args: T.List[T.Union[str, mesonlib.File, build.Target, ExternalProgram]],
env: mesonlib.EnvironmentVariables,
should_fail: bool, timeout: int, workdir: T.Optional[str], protocol: str,
priority: int, verbose: bool):