diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-09-08 19:05:50 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-09-10 08:18:16 +0000 |
commit | fb7099c6cf5a7ad43da1ad83c28567ecfb70809f (patch) | |
tree | b92fe74badcb56854370f83fbc3235b64f1b4412 /mesonbuild/backend | |
parent | 36600d7465e854c6f3d7fc824a7fa5d4415a6292 (diff) | |
download | meson-fb7099c6cf5a7ad43da1ad83c28567ecfb70809f.zip meson-fb7099c6cf5a7ad43da1ad83c28567ecfb70809f.tar.gz meson-fb7099c6cf5a7ad43da1ad83c28567ecfb70809f.tar.bz2 |
mtest: Check version in the test data after loading
Same as coredata.dat and build.dat loading. Also, do not assert if
things change. Raise the appropriate exception.
Fixes https://github.com/mesonbuild/meson/issues/7613
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r-- | mesonbuild/backend/backends.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index b12932a..568aeee 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -121,8 +121,7 @@ class TestSerialisation: env: build.EnvironmentVariables, should_fail: bool, timeout: T.Optional[int], workdir: T.Optional[str], extra_paths: T.List[str], protocol: TestProtocol, priority: int, - cmd_is_built: bool, - depends: T.List[str]): + cmd_is_built: bool, depends: T.List[str], version: str): self.name = name self.project_name = project self.suite = suite @@ -143,6 +142,7 @@ class TestSerialisation: self.needs_exe_wrapper = needs_exe_wrapper self.cmd_is_built = cmd_is_built self.depends = depends + self.version = version def get_backend_from_name(backend: str, build: T.Optional[build.Build] = None, interpreter: T.Optional['Interpreter'] = None) -> T.Optional['Backend']: @@ -864,7 +864,8 @@ class Backend: t.should_fail, t.timeout, t.workdir, extra_paths, t.protocol, t.priority, isinstance(exe, build.Executable), - [x.get_id() for x in depends]) + [x.get_id() for x in depends], + self.environment.coredata.version) arr.append(ts) return arr |