From 103fe1f48b03eac4dbbf6083781a201102993714 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 1 Nov 2022 10:30:40 +0000 Subject: [PATCH] tests: Skip building kernel if already present When running the glibc and musl integration tests on the CI after each other skip building the kernel a second time. Signed-off-by: Rob Bradford --- scripts/run_integration_tests_x86_64.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/run_integration_tests_x86_64.sh b/scripts/run_integration_tests_x86_64.sh index a9ba7a180..615e6608e 100755 --- a/scripts/run_integration_tests_x86_64.sh +++ b/scripts/run_integration_tests_x86_64.sh @@ -124,7 +124,9 @@ popd # Build custom kernel based on virtio-pmem and virtio-fs upstream patches VMLINUX_IMAGE="$WORKLOADS_DIR/vmlinux" -build_custom_linux +if [ ! -f "$VMLINUX_IMAGE" ]; then + build_custom_linux +fi VIRTIOFSD="$WORKLOADS_DIR/virtiofsd" VIRTIOFSD_DIR="virtiofsd_build"