From 295d966318a28ced6d77da01b26da4d145d26798 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 Oct 2021 14:46:49 +0300 Subject: Free up space before installing package in worker --- bbot/worker/worker.cxx | 7 +++++++ tests/integration/testscript | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index 03287a3..8994e3f 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -2490,6 +2490,13 @@ build (size_t argc, const char* argv[]) change_wd (trace, &r.log, install_conf); + // Note that for a host or module package we don't need the target + // configuration anymore, if present. So let's free up the space a + // little bit. + // + if (!target_pkg && create_target) + rm_r (trace, &r.log, rwd / target_conf); + // bpkg install // step_id b (step_id::bpkg_install); diff --git a/tests/integration/testscript b/tests/integration/testscript index 21dd8ad..eef7981 100644 --- a/tests/integration/testscript +++ b/tests/integration/testscript @@ -116,7 +116,7 @@ rfp = yes #\ pkg = cli -ver = 1.2.0-b.7.20211007073047.17ca8c504f73 +ver = 1.2.0-b.7.20211014122150.388da73246c0 rep_url = "https://git.codesynthesis.com/cli/cli.git#master" rep_type = git #rep_url = https://stage.build2.org/1 @@ -141,7 +141,7 @@ tests="tests: libxsd-tests == $ver" #\ pkg = xsd -ver = 4.2.0-b.1.20211007072931.2239061347d1 +ver = 4.2.0-b.1.20211014095925.62e38666e63f rep_url = "https://git.codesynthesis.com/xsd/xsd.git#master" rep_type = git #rep_url = https://queue.stage.build2.org/1 -- cgit v1.1