diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-08 15:45:51 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-08 15:45:51 +0200 |
commit | 23c6de34610080ba38e44b04622486f918e53809 (patch) | |
tree | 529432c3f4e1f0b9c7f903312ada1dfe4d2678b6 /backends.py | |
parent | d5bdfb5906563f031c17cfa9564a03ed475053b9 (diff) | |
download | meson-23c6de34610080ba38e44b04622486f918e53809.zip meson-23c6de34610080ba38e44b04622486f918e53809.tar.gz meson-23c6de34610080ba38e44b04622486f918e53809.tar.bz2 |
Can specify a working directory for tests. Closes #326.
Diffstat (limited to 'backends.py')
-rw-r--r-- | backends.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends.py b/backends.py index 03ecd4b..7f7c338 100644 --- a/backends.py +++ b/backends.py @@ -21,7 +21,7 @@ from coredata import MesonException class TestSerialisation: def __init__(self, name, fname, is_cross, exe_wrapper, is_parallel, cmd_args, env, - should_fail, valgrind_args, timeout, extra_paths): + should_fail, valgrind_args, timeout, workdir, extra_paths): self.name = name self.fname = fname self.is_cross = is_cross @@ -32,6 +32,7 @@ class TestSerialisation: self.should_fail = should_fail self.valgrind_args = valgrind_args self.timeout = timeout + self.workdir = workdir self.extra_paths = extra_paths # This class contains the basic functionality that is needed by all backends. @@ -303,7 +304,7 @@ class Backend(): cmd_args.append(a) ts = TestSerialisation(t.get_name(), fname, is_cross, exe_wrapper, t.is_parallel, cmd_args, t.env, t.should_fail, t.valgrind_args, - t.timeout, extra_paths) + t.timeout, t.workdir, extra_paths) arr.append(ts) pickle.dump(arr, datafile) |