aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-02-27 21:40:32 +0200
committerGitHub <noreply@github.com>2018-02-27 21:40:32 +0200
commit59e7ea169f3d875b2dfefc0d7a41a2ea9eca08f0 (patch)
tree2bc543667d64e910b34be00fe7847fb6dbb3e8ab /mesonbuild/backend/backends.py
parent16f80b4c506bba9839e30bd98fcbbafddcef3632 (diff)
parent4f8db1fe47056fa650236c9c89ddd4814a271174 (diff)
downloadmeson-59e7ea169f3d875b2dfefc0d7a41a2ea9eca08f0.zip
meson-59e7ea169f3d875b2dfefc0d7a41a2ea9eca08f0.tar.gz
meson-59e7ea169f3d875b2dfefc0d7a41a2ea9eca08f0.tar.bz2
Merge pull request #2311 from trhd/setups
Improve test setup selection.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index b547bc3..a8e8164 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -65,9 +65,10 @@ class ExecutableSerialisation:
self.capture = capture
class TestSerialisation:
- def __init__(self, name, suite, fname, is_cross_built, exe_wrapper, is_parallel, cmd_args, env,
- should_fail, timeout, workdir, extra_paths):
+ def __init__(self, name, project, suite, fname, is_cross_built, exe_wrapper, is_parallel,
+ cmd_args, env, should_fail, timeout, workdir, extra_paths):
self.name = name
+ self.project_name = project
self.suite = suite
self.fname = fname
self.is_cross_built = is_cross_built
@@ -603,9 +604,9 @@ class Backend:
cmd_args.append(self.get_target_filename(a))
else:
raise MesonException('Bad object in test command.')
- ts = TestSerialisation(t.get_name(), t.suite, cmd, is_cross, exe_wrapper,
- t.is_parallel, cmd_args, t.env, t.should_fail,
- t.timeout, t.workdir, extra_paths)
+ ts = TestSerialisation(t.get_name(), t.project_name, t.suite, cmd, is_cross,
+ exe_wrapper, t.is_parallel, cmd_args, t.env,
+ t.should_fail, t.timeout, t.workdir, extra_paths)
arr.append(ts)
pickle.dump(arr, datafile)