pytest: don't checksum plugins on startup in VALGRIND developer mode.

This loads up 20MB of plugins temporarily; we seem to be getting OOM
killed under CI and I wonder if this is contributing.

Doesn't significantly reduce runtime here, but I have lots of memory.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-11-12 17:14:46 +10:30
committed by Christian Decker
parent 09bbda4bca
commit 65bb989cf1
6 changed files with 21 additions and 4 deletions

View File

@@ -2520,6 +2520,9 @@ plugin.run()
# get a node that is not started so we can put a plugin in its lightning_dir
n = node_factory.get_node(start=False)
if "dev-no-plugin-checksum" in n.daemon.opts:
del n.daemon.opts["dev-no-plugin-checksum"]
lndir = n.daemon.lightning_dir
# write hello world plugin to lndir/plugins