Browse Source

Update e2e test script

Signed-off-by: JimmyYang20 <yangjin39@huawei.com>
tags/v0.5.1
JimmyYang20 3 years ago
parent
commit
1ba45c407f
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      hack/run-e2e.sh

+ 9
- 3
hack/run-e2e.sh View File

@@ -22,13 +22,19 @@ SEDNA_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"


cd "$SEDNA_ROOT" cd "$SEDNA_ROOT"


# source local-up script
# Prepare all-in-one env
{ {
__WITH_SOURCE__=true __WITH_SOURCE__=true
# this will export KUBECONFIG # 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..." echo "Running e2e..."
go test ./test/e2e -v 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

Loading…
Cancel
Save