[skip e2e]Refine script (#15041)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/15024/merge
zhuwenxing 2022-01-07 19:29:30 +08:00 committed by GitHub
parent 698571383e
commit e2bf0ce787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ chaos_type=${2:-"pod_kill"} #pod_kill or pod_failure
chaos_task=${3:-"chaos-test"} # chaos-test or data-consist-test
node_num=${4:-1} # cluster_1_node or cluster_n_nodes
cur_time=`date +%H-%M-%S`
cur_time=$(date +%H-%M-%S)
release="test"-${pod}-${chaos_type/_/-}-${cur_time} # replace pod_kill to pod-kill
# install milvus cluster for chaos testing
@ -93,5 +93,5 @@ pytest -s -v ../testcases/test_e2e.py --host "$host" --log-cli-level=INFO --capt
python scripts/hello_milvus.py --host "$host" || echo "e2e test fail"
# save logs
cur_time=`date +%Y-%m-%d-%H-%M-%S`
cur_time=$(date +%Y-%m-%d-%H-%M-%S)
bash ../../scripts/export_log_k8s.sh ${ns} ${release} k8s_log/${pod}-${chaos_type}-${chaos_task}-${cur_time}