diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-10-14 14:46:49 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-10-14 15:26:12 +0300 |
commit | 295d966318a28ced6d77da01b26da4d145d26798 (patch) | |
tree | a9c13712d2f39e4537d42936d1bd760912980b22 | |
parent | 5399ed209cb567657cc5f26ad5fdb4484291031c (diff) |
Free up space before installing package in worker
-rw-r--r-- | bbot/worker/worker.cxx | 7 | ||||
-rw-r--r-- | 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 <env-config-args> <config-args> <package-name> // 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 |