fix --sanity-check-only for impi#3403
Conversation
|
Test report by @Flamefire Overview of tested easyconfigs (in order)
Build succeeded for 14 out of 14 (14 easyconfigs in total) |
|
Was a bit too quick here... If we use tempfile.mkdtemp outside of builddir we need to delete it afterwards. |
The base directory for that is If it isn't we should only delete the tmp dir, not the builddir as one might want to inspect that as before via --disable-cleanup-build |
|
Ah yes, forgot that TMPDIR is set to eb controlled space. Blaming first week after vacation for brain not being fully engaged. |
|
Going in, thanks @Flamefire! |
--sanity-check-only for impi
(created using
eb --new-pr)During sanity-check-only the
prepare_stepis skipped which sets up the toolchain including toolchain and environment variables such as $CCWithout that step (i.e. in sanity-check-only mode)
os.getenv('CC')will fail because the variable is not set. Or even worse: It is set but to a wrong value.Additionally
ec['parallel']is also not set yielding ampirun -n Nonewhich of course fails.This PR adds the prepare_step and set_parallel call to initialize those. It also uses a temporary directory for the test binary because the builddir also doesn't exist.