From 1ba45c407f298d4a1a02484233b2bbd9d8431ac8 Mon Sep 17 00:00:00 2001 From: JimmyYang20 Date: Wed, 20 Jul 2022 09:43:43 +0800 Subject: [PATCH] Update e2e test script Signed-off-by: JimmyYang20 --- hack/run-e2e.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hack/run-e2e.sh b/hack/run-e2e.sh index 92eed359f..4e85f2675 100755 --- a/hack/run-e2e.sh +++ b/hack/run-e2e.sh @@ -22,13 +22,19 @@ SEDNA_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" cd "$SEDNA_ROOT" -# source local-up script +# Prepare all-in-one env { __WITH_SOURCE__=true # this will export KUBECONFIG - source hack/local-up.sh - trap cleanup EXIT + echo "Prepare all-in-one env" + cat scripts/installation/all-in-one.sh | KUBEEDGE_VERSION=v1.8.0 NUM_EDGE_NODES=0 bash - } +# Running e2e echo "Running e2e..." go test ./test/e2e -v + + +# Clean all-in-one env +echo "Chean all-in-one env" +cat scripts/installation/all-in-one.sh | bash /dev/stdin clean