aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2017-09-11 01:04:50 +0300
committerHemmo Nieminen <hemmo.nieminen@iki.fi>2018-02-25 21:44:59 +0200
commit46110976548cc56153c6186bc16210998758a7c3 (patch)
treebb58e463538bc566cb66cc2ebbe68dff663ef58f /mesonbuild/backend/backends.py
parentabcaf7c222c9e74774f7f5396e16cac40774c236 (diff)
downloadmeson-46110976548cc56153c6186bc16210998758a7c3.zip
meson-46110976548cc56153c6186bc16210998758a7c3.tar.gz
meson-46110976548cc56153c6186bc16210998758a7c3.tar.bz2
Include project name in a test object.
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)