test serialisation: determine windows extra paths ..

..  for executable arguments too.

This makes it possible to pass an executable to a test, which
can then run it in an appropriate environment.
pull/3134/head
Mathieu Duponchelle 7 years ago committed by Nirbheek Chauhan
parent 968f2c63af
commit 35ab34d6cd
  1. 2
      mesonbuild/backend/backends.py

@ -625,6 +625,8 @@ class Backend:
for a in t.cmd_args:
if hasattr(a, 'held_object'):
a = a.held_object
if isinstance(a, build.Executable):
extra_paths += self.determine_windows_extra_paths(a, [])
if isinstance(a, mesonlib.File):
a = os.path.join(self.environment.get_build_dir(), a.rel_to_builddir(self.build_to_src))
cmd_args.append(a)

Loading…
Cancel
Save