From 0d18fbfd3dcb65c1e4fa293e2ba2a74492275b2e Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 20 Mar 2018 13:36:05 +0100 Subject: [PATCH] Add a longer timeout for meson test. --- dependencies.py | 3 ++- dependency_utils.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dependencies.py b/dependencies.py index 6ada955..7eb0e57 100644 --- a/dependencies.py +++ b/dependencies.py @@ -273,7 +273,8 @@ class Libzim(Dependency): git_remote = "https://github.com/openzim/libzim.git" git_dir = "libzim" - Builder = MesonBuilder + class Builder(MesonBuilder): + test_option = "-t 8" class ZimTools(Dependency): diff --git a/dependency_utils.py b/dependency_utils.py index 2670a1a..d218974 100644 --- a/dependency_utils.py +++ b/dependency_utils.py @@ -351,6 +351,7 @@ class CMakeBuilder(MakeBuilder): class MesonBuilder(Builder): configure_option = "" + test_option = "" @property def library_type(self): @@ -392,7 +393,7 @@ class MesonBuilder(Builder): and not self.buildEnv.platform_info.static) ): raise SkipCommand() - command = "{} --verbose".format(self.buildEnv.mesontest_command) + command = "{} --verbose {}".format(self.buildEnv.mesontest_command, self.test_option) self.buildEnv.run_command(command, self.build_path, context) def _install(self, context):