summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-06-22 17:18:16 +0200
committerBastien Nocera <hadess@hadess.net>2022-06-27 14:36:12 +0200
commit285762d3e2348f08577cc6b9ac2be4ca30775b97 (patch)
tree840d0871abf78b620eb890f6e0bf6fa0c31c8aa9 /src
parentaae02e1e5dfcb0100f460f0b622d16bac45d2165 (diff)
downloadtotem-285762d3e2348f08577cc6b9ac2be4ca30775b97.tar.gz
build: Disable MALLOC_PERTURB_ when running pylint
By default, meson will set MALLOC_PERTURB_ to a non-zero value when running tests, which had the effect of making a pylint run take 200 seconds instead of around 15. Disabling that envvar makes the tests take a more reasonable amount of time.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/opensubtitles/meson.build1
-rw-r--r--src/plugins/pythonconsole/meson.build1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/opensubtitles/meson.build b/src/plugins/opensubtitles/meson.build
index cd4858912..689722daf 100644
--- a/src/plugins/opensubtitles/meson.build
+++ b/src/plugins/opensubtitles/meson.build
@@ -43,5 +43,6 @@ if pylint.found()
test('pylint-' + plugin_name,
pylint,
args: pylint_flags + ['-d', 'bad-continuation' ] + files([ plugin_name + '.py', 'hash.py' ]),
+ env: nomalloc,
timeout: 120)
endif
diff --git a/src/plugins/pythonconsole/meson.build b/src/plugins/pythonconsole/meson.build
index cf91c20d4..46c15a0fa 100644
--- a/src/plugins/pythonconsole/meson.build
+++ b/src/plugins/pythonconsole/meson.build
@@ -42,5 +42,6 @@ if pylint.found()
test('pylint-' + plugin_name,
pylint,
args: pylint_flags + files([ plugin_name + '.py', 'console.py' ]),
+ env: nomalloc,
timeout: 120)
endif