From 94d499843c0202af9636cad522d30eaf9ffed798 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Tue, 7 Jan 2020 15:25:05 -0800 Subject: [PATCH] Add Makefile variable to skip test packages Signed-off-by: Derek McGowan --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 68b1d1fb8..65f7f852d 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,11 @@ TEST_REQUIRES_ROOT_PACKAGES=$(filter \ done | sort -u) \ ) +ifdef SKIPTESTS + PACKAGES:=$(filter-out ${SKIPTESTS},${PACKAGES}) + TEST_REQUIRES_ROOT_PACKAGES:=$(filter-out ${SKIPTESTS},${TEST_REQUIRES_ROOT_PACKAGES}) +endif + # Project binaries. COMMANDS=ctr containerd containerd-stress MANPAGES=ctr.1 containerd.1 containerd-config.1 containerd-config.toml.5