From 46eba86ee88ae736e55a1283abd73f96ffa12214 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Tue, 4 Jul 2023 17:37:08 +0200 Subject: [PATCH] disable disk space check in STAR-CCM+ installer, and take into account that this makes installer exit with non-zero exit code --- easybuild/easyblocks/s/star_ccm.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/easybuild/easyblocks/s/star_ccm.py b/easybuild/easyblocks/s/star_ccm.py index 7f981e9b36..b4993bb23a 100644 --- a/easybuild/easyblocks/s/star_ccm.py +++ b/easybuild/easyblocks/s/star_ccm.py @@ -65,7 +65,8 @@ def install_step(self): # depending of the target filesystem the check for available disk space may fail, so disable it; # note that this makes the installer exit with non-zero exit code... - # env.setvar('CHECK_DISK_SPACE', 'OFF') + env.setvar('CHECK_DISK_SPACE', 'OFF') + env.setvar('IATEMPDIR', tempfile.mkdtemp()) cmd = ' '.join([ @@ -77,7 +78,10 @@ def install_step(self): "-DADDSYSTEMPATH=false", self.cfg['installopts'], ]) - run_cmd(cmd, log_all=True, simple=True) + + # ignore exit code of command, since there's always a non-zero exit if $CHECK_DISK_SPACE is set to OFF; + # rely on sanity check to catch problems with the installation + run_cmd(cmd, log_all=False, log_ok=False, simple=False) def find_starccm_subdirs(self): """Determine subdirectory of install directory in which STAR-CCM+ was installed."""