mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Refine script (#15041)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/15024/merge
parent
698571383e
commit
e2bf0ce787
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue