diff --git a/lib/hgaster/hooks/codeaster.py b/lib/hgaster/hooks/codeaster.py index 59f96f0d81002986791b74a3bd8af2ee012b684f..9f4a5107932a0b0e960ac876f2679ce71c97e12d 100644 --- a/lib/hgaster/hooks/codeaster.py +++ b/lib/hgaster/hooks/codeaster.py @@ -134,6 +134,9 @@ def run_ctest_minimal(repopath): target = "debug" wafc4che = osp.join(builddir, "c4che", target + "_cache.py") c4che = read_waf_parameters(wafc4che) + if not c4che: + logger.warning("Can not find installation directory. Cancelled.") + return OK run_ctest = Path(c4che["BINDIR"]) / "run_ctest" logger.info("NB: This version will be used: %s", run_ctest)