aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiva Mahadevan <me@svmhdvn.name>2025-07-24 20:01:50 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2025-07-24 20:01:50 +0000
commit10fb5e7117e522540167fa02692e1e7b8e38eec0 (patch)
treeb872c58751be3fb514fe4dcc8471a1818dee1189
parent110111a6cca14dd46b6d68e6f34e141ff6b7e44e (diff)
tests/ci: Fix race condition with ci-extractmeta
This solves an issue where 'ci-extractmeta' runs in parallel with 'ci-runtest', which would extract an empty test result into the final test reports output dir. This also cleans up the intermediate temporary files created along the way. Signed-off-by: Siva Mahadevan <me@svmhdvn.name> Reviewed by: emaste, lwhsu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51363
-rw-r--r--tests/ci/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ci/Makefile b/tests/ci/Makefile
index b8797e06ac75..ac7faff3afae 100644
--- a/tests/ci/Makefile
+++ b/tests/ci/Makefile
@@ -205,6 +205,7 @@ ci-create-meta: .PHONY
ci-extract-meta: .PHONY
tar xfv ${META_TAR} -C ${META_DIROUT}
+ rm -rf ${META_TAR} ${META_DIR}
@echo "Extracted kyua reports to ${META_DIROUT}"
ci-runtest: ci-buildimage-${TARGET_ARCH:tl} portinstall .PHONY
@@ -254,7 +255,7 @@ ci-checktarget: .PHONY
ci-smoke: ci-set-smoke-var ci-create-meta ci-checktarget .WAIT ci-runtest-${TARGET_ARCH:tl} .PHONY
-ci-full: ci-set-full-var ci-create-meta ci-checktarget .WAIT ci-runtest-${TARGET_ARCH:tl} ci-extract-meta .PHONY
+ci-full: ci-set-full-var ci-create-meta ci-checktarget .WAIT ci-runtest-${TARGET_ARCH:tl} .WAIT ci-extract-meta .PHONY
ci: ci-${CITYPE:tl} .PHONY