mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: fix etcd-tester flags
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
6e11a79fd8
commit
00d14cfd03
19
test
19
test
@ -82,12 +82,11 @@ function integration_pass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function functional_pass {
|
function functional_pass {
|
||||||
# Clean up any data and logs from previous runs
|
# Clean up any data and logs from previous runs
|
||||||
rm -rf ./agent-*
|
rm -rf ./agent-*
|
||||||
|
|
||||||
for a in 1 2 3; do
|
for a in 1 2 3; do
|
||||||
mkdir -p ./agent-$a
|
mkdir -p ./agent-$a
|
||||||
./bin/etcd-agent -etcd-path ./bin/etcd -etcd-log-dir "./agent-$a" -port ":${a}9027" &
|
./bin/etcd-agent -etcd-path ./bin/etcd -etcd-log-dir "./agent-$a" -port ":${a}9027" -use-root=false &
|
||||||
pid="$!"
|
pid="$!"
|
||||||
agent_pids="${agent_pids} $pid"
|
agent_pids="${agent_pids} $pid"
|
||||||
done
|
done
|
||||||
@ -102,23 +101,17 @@ function functional_pass {
|
|||||||
echo "Starting 'etcd-tester'"
|
echo "Starting 'etcd-tester'"
|
||||||
./bin/etcd-tester \
|
./bin/etcd-tester \
|
||||||
-agent-endpoints "127.0.0.1:19027,127.0.0.1:29027,127.0.0.1:39027" \
|
-agent-endpoints "127.0.0.1:19027,127.0.0.1:29027,127.0.0.1:39027" \
|
||||||
-client-ports 1379,2379,3379 \
|
-client-ports 12379,22379,32379 \
|
||||||
-advertise-client-ports 13790,23790,33790 \
|
-peer-ports 12380,22380,32380 \
|
||||||
-peer-ports 1380,2380,3380 \
|
|
||||||
-advertise-peer-ports 13800,23800,33800 \
|
|
||||||
-limit 1 \
|
-limit 1 \
|
||||||
-schedule-cases "0 1 2 3 4 5 6 7 8 9" \
|
-schedule-cases "0 1 2 3 4 5 6 7 8 9" \
|
||||||
-stress-qps 1000 \
|
|
||||||
-stress-key-txn-count 100 \
|
|
||||||
-stress-key-txn-ops 10 \
|
|
||||||
-exit-on-failure && echo "'etcd-tester' succeeded"
|
-exit-on-failure && echo "'etcd-tester' succeeded"
|
||||||
ETCD_TESTER_EXIT_CODE=$?
|
ETCD_TESTER_EXIT_CODE=$?
|
||||||
echo "ETCD_TESTER_EXIT_CODE:" ${ETCD_TESTER_EXIT_CODE}
|
echo "ETCD_TESTER_EXIT_CODE:" ${ETCD_TESTER_EXIT_CODE}
|
||||||
|
|
||||||
echo "Waiting for processes to exit"
|
echo "Waiting for processes to exit"
|
||||||
agent_pids=($agent_pids)
|
kill -s TERM ${agent_pids}
|
||||||
kill -s TERM "${agent_pids[@]}"
|
for a in ${agent_pids}; do wait $a || true; done
|
||||||
for a in "${agent_pids[@]}"; do wait "$a" || true; done
|
|
||||||
|
|
||||||
if [[ "${ETCD_TESTER_EXIT_CODE}" -ne "0" ]]; then
|
if [[ "${ETCD_TESTER_EXIT_CODE}" -ne "0" ]]; then
|
||||||
echo "--- FAIL: exit code" ${ETCD_TESTER_EXIT_CODE}
|
echo "--- FAIL: exit code" ${ETCD_TESTER_EXIT_CODE}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user