diff --git a/Test/E2E/suite/run_e2e.sh b/Test/E2E/suite/run_e2e.sh index f9e474f..dea5a45 100755 --- a/Test/E2E/suite/run_e2e.sh +++ b/Test/E2E/suite/run_e2e.sh @@ -472,7 +472,11 @@ ${PY} "${SCRIPT_DIR}/collect.py" --repo "${REPO_ROOT}" --target "${TARGET}" \ if [ "${CPP_COV}" -eq 1 ]; then echo " restoring non-instrumented build ..." make -C "${REPO_ROOT}" -f Makefile.gcc clean >/dev/null 2>&1 || true - make -C "${REPO_ROOT}" -f Makefile.gcc core apps TARGET="${TARGET}" 2>&1 | tail -1 + # `clean` also wipes Test/GTest, Test/Integration and Test/Components/* (see + # the root Makefile.gcc `clean` target), so `test` must be rebuilt here too, + # not just `core apps` — otherwise MainGTest.ex/IntegrationTests.ex are left + # deleted (instrumented-only) after every --cpp-coverage run. + make -C "${REPO_ROOT}" -f Makefile.gcc core apps test TARGET="${TARGET}" 2>&1 | tail -1 (cd "${SCRIPT_DIR}/client" && go build -o chain-client . >/dev/null 2>&1) || true (cd "${SCRIPT_DIR}/debugclient" && go build -o debugclient . >/dev/null 2>&1) || true fi