diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-10-18 22:04:07 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-10-18 22:04:07 +0300 |
commit | 11cfb3ce22dfbe189969575832d51a925abc8fee (patch) | |
tree | 6ae67dd7b4ff9e26d9ff49d03bb329b978a99670 /backends.py | |
parent | ae06ca2afc58901d9d72f13f662701cf12281b51 (diff) | |
download | meson-11cfb3ce22dfbe189969575832d51a925abc8fee.zip meson-11cfb3ce22dfbe189969575832d51a925abc8fee.tar.gz meson-11cfb3ce22dfbe189969575832d51a925abc8fee.tar.bz2 |
Can set test cmd arguments and environment variables.
Diffstat (limited to 'backends.py')
-rw-r--r-- | backends.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/backends.py b/backends.py index b66c80e..01e782c 100644 --- a/backends.py +++ b/backends.py @@ -96,12 +96,14 @@ def do_conf_file(src, dst, confdata): os.replace(dst_tmp, dst) class TestSerialisation: - def __init__(self, name, fname, is_cross, exe_wrapper, is_parallel): + def __init__(self, name, fname, is_cross, exe_wrapper, is_parallel, cmd_args, env): self.name = name self.fname = fname self.is_cross = is_cross self.exe_runner = exe_wrapper self.is_parallel = is_parallel + self.cmd_args = cmd_args + self.env = env # It may seem a bit silly that this Backend class exists on its own # rather than being a part of NinjaBackend, which is the only class @@ -498,7 +500,8 @@ class NinjaBackend(Backend): exe_wrapper = self.environment.cross_info.get('exe_wrapper', None) else: exe_wrapper = None - ts = TestSerialisation(t.get_name(), fname, is_cross, exe_wrapper, t.is_parallel) + ts = TestSerialisation(t.get_name(), fname, is_cross, exe_wrapper, + t.is_parallel, t.cmd_args, t.env) arr.append(ts) pickle.dump(arr, datafile) |