summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorluomengY <2938893385@qq.com>2023-12-15 15:40:47 +0800
committerluomengY <2938893385@qq.com>2024-01-16 23:11:09 +0800
commit34b771a5a9824183ca2422b8f087313a523151c5 (patch)
treeb9334ae1dab574770ec9077b731ea5ce6de0e9d8 /tests
parentMerge pull request #5267 from pengbinbin1/fix (diff)
downloadkubeedge-34b771a5a9824183ca2422b8f087313a523151c5.tar.gz
add cri-ci
Signed-off-by: luomengY <2938893385@qq.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/scripts/execute.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/scripts/execute.sh b/tests/scripts/execute.sh
index eade794a6..f1e075a23 100755
--- a/tests/scripts/execute.sh
+++ b/tests/scripts/execute.sh
@@ -16,7 +16,7 @@
set -e
-workdir=`pwd`
+workdir=$(pwd)
cd $workdir
curpath=$PWD
@@ -26,13 +26,13 @@ GOPATH=${GOPATH:-$(go env GOPATH)}
KIND_IMAGE=${1:-"kindest/node:v1.26.0"}
compilemodule=$2
-which ginkgo &> /dev/null || (
- go install github.com/onsi/ginkgo/v2/ginkgo@latest
- sudo cp $GOPATH/bin/ginkgo /usr/local/bin/
+which ginkgo &>/dev/null || (
+ go install github.com/onsi/ginkgo/v2/ginkgo@latest
+ sudo cp $GOPATH/bin/ginkgo /usr/local/bin/
)
cleanup() {
- bash ${curpath}/tests/scripts/cleanup.sh
+ bash ${curpath}/tests/scripts/cleanup.sh
}
cleanup
@@ -43,12 +43,12 @@ sudo rm -rf ${curpath}/tests/e2e_keadm/e2e_keadm.test
# Specify the module name to compile in below command
bash -x ${curpath}/tests/scripts/compile.sh ${compilemodule}
-ENABLE_DAEMON=true bash -x ${curpath}/hack/local-up-kubeedge.sh ${KIND_IMAGE}|| {
- echo "failed to start cluster !!!"
- exit 1
+ENABLE_DAEMON=true bash -x ${curpath}/hack/local-up-kubeedge.sh ${KIND_IMAGE} || {
+ echo "failed to start cluster !!!"
+ exit 1
}
-:> /tmp/testcase.log
+: >/tmp/testcase.log
export GINKGO_TESTING_RESULT=0