From ae25d5319b6fc5e26848cd3792d4565a7590612b Mon Sep 17 00:00:00 2001 From: "Muyassarov, Feruzjon" Date: Thu, 2 Feb 2023 01:00:32 +0200 Subject: [PATCH] test: move out unit testing from Dockerfile Move out running unit tests as part of container image building and instead add it into verify.sh script which runs linter, formatter and other checks. Signed-off-by: Muyassarov, Feruzjon --- Dockerfile | 2 -- scripts/test-infra/verify.sh | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 40c4af2667..b4130e10c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,8 +27,6 @@ ARG HOSTMOUNT_PREFIX RUN make install VERSION=$VERSION HOSTMOUNT_PREFIX=$HOSTMOUNT_PREFIX -RUN make test - # Create full variant of the production image FROM ${BASE_IMAGE_FULL} as full diff --git a/scripts/test-infra/verify.sh b/scripts/test-infra/verify.sh index 6c64a88604..aee7a4cfca 100755 --- a/scripts/test-infra/verify.sh +++ b/scripts/test-infra/verify.sh @@ -21,6 +21,9 @@ make ci-lint echo "Running Helm lint" make helm-lint +echo "Running unit tests" +make test + # Check that repo is clean if ! git diff --quiet; then echo "Repository is dirty!"