From c541c2b6dae29a72945f633b95915baf183f7e6a Mon Sep 17 00:00:00 2001 From: Costin Lupu Date: Thu, 23 Nov 2023 11:55:20 +0100 Subject: [PATCH] run_tests.sh: Load vsock_loopback module for vsock-proxy tests The `connection_test` test runs the vsock-proxy on the parent instance for testing the connection between a server and a client on the same instance, in which case the vsock loopback must be enabled on the parent instance. Signed-off-by: Costin Lupu --- run_tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 83e88dea4..d7264019b 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -109,6 +109,11 @@ sed -i 's/CMD/ENTRYPOINT/g' examples/"${ARCH}"/hello-entrypoint/Dockerfile || te nitro-cli build-enclave --docker-dir examples/"${ARCH}"/hello-entrypoint --docker-uri hello-entrypoint-usage \ --output-file test_images/hello-entrypoint-usage.eif || test_failed +# Load vsock_loopback module for connection_test test of vsock-proxy +if [ "$(lsmod | grep -cw vsock_loopback)" -eq 0 ]; then + modprobe vsock_loopback || test_failed +fi + # Run all unit tests while IFS= read -r test_line do