From daf51fb8b1c715c9b45c25ea2eca0d6b054906ae Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 16 Jul 2019 19:18:08 +0200 Subject: [PATCH] phase1: enable shared work directory by default Enable work directory sharing for any slave having a concurrent build limit of one job. Signed-off-by: Jo-Philipp Wich --- phase1/master.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phase1/master.cfg b/phase1/master.cfg index cd951e0..46e1a72 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -62,6 +62,8 @@ for section in ini.sections(): if ini.has_option(section, "builds"): max_builds = ini.getint(section, "builds") sl_props['max_builds'] = max_builds + if max_builds == 1: + sl_props['shared_wd'] = True if ini.has_option(section, "cleanup"): sl_props['do_cleanup'] = ini.getboolean(section, "cleanup") if ini.has_option(section, "dl_lock"): -- 2.30.2