Skip to content

Commit b9a13f8

Browse files
committed
tests/ci: simplify top-level 'ci' target
This patch removes the ci-set-*-var targets and conditionally runs ci-extract-meta only if CITYPE=full. The intended external interface into the tests/ci Makefile infrastructure already requires CITYPE to be set (either through its default CITYPE?=full line, or through the Make command line). Thus, the ci-set-*-var targets don't functionally do anything. Signed-off-by: Siva Mahadevan <[email protected]> Sponsored by: The FreeBSD Foundation
1 parent a071b96 commit b9a13f8

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

tests/ci/Makefile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,21 +195,19 @@ ci-buildimage: ${QEMUTGT} ci-buildkernel-${TARGET_ARCH:tl} .PHONY
195195
(echo "${.TARGET} failed, check _.${TARGET_ARCH}.${.TARGET} for details" ; false)
196196
touch ${.TARGET}
197197

198-
ci-set-smoke-var: .PHONY
199-
CITYPE=smoke
200-
201-
ci-set-full-var: .PHONY
202-
CITYPE=full
203-
204198
ci-create-meta: .PHONY
205199
truncate -s 512M ${META_TAR}
206200
tar rvf ${META_TAR} -C ${META_DIR} .
207201

208202
ci-extract-meta: .PHONY
203+
.if ${CITYPE:tl} == "full"
209204
tar xfv ${META_TAR} -C ${META_DIROUT}
210205
rm -rf ${META_TAR} ${META_DIR}
211206
chmod 0755 ${META_DIROUT}
212207
@echo "Extracted kyua reports to ${META_DIROUT}"
208+
.else
209+
rm -rf ${META_TAR} ${META_DIR} ${META_DIROUT}
210+
.endif
213211

214212
ci-runtest: ci-buildimage-${TARGET_ARCH:tl} portinstall .PHONY
215213
.if ${MACHINE} == "amd64" && ( ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386" ) && ( !defined(USE_QEMU) || empty(USE_QEMU) )
@@ -258,10 +256,6 @@ ci-checktarget: .PHONY
258256
@echo "Error: ${TARGET_ARCH} is not supported on ${TYPE} ${REVISION} ${BRANCH}"
259257
.endif
260258

261-
ci-smoke: ci-set-smoke-var ci-create-meta ci-checktarget .WAIT ci-runtest-${TARGET_ARCH:tl} .PHONY
262-
263-
ci-full: ci-set-full-var ci-create-meta ci-checktarget .WAIT ci-runtest-${TARGET_ARCH:tl} .WAIT ci-extract-meta .PHONY
264-
265-
ci: ci-${CITYPE:tl} .PHONY
259+
ci: ci-create-meta ci-checktarget .WAIT ci-runtest-${TARGET_ARCH:tl} .WAIT ci-extract-meta .PHONY
266260

267261
.include "${RELEASEDIR}/Makefile.inc1"

0 commit comments

Comments
 (0)