summaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index b43f165ed..21414d2c5 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1458,6 +1458,11 @@ class SingleTestRunner:
'found. Please check the command and/or add it to PATH.')
raise TestException(msg.format(self.test.exe_wrapper.name))
return self.test.exe_wrapper.get_command() + self.test.fname
+ elif self.test.cmd_is_built and not self.test.cmd_is_exe and is_windows():
+ test_cmd = ExternalProgram._shebang_to_cmd(self.test.fname[0])
+ if test_cmd is not None:
+ test_cmd += self.test.fname[1:]
+ return test_cmd
return self.test.fname
def _get_cmd(self) -> T.Optional[T.List[str]]: