mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #14766 from serathius/failpoints-disable
Avoid getting gofail/runtime when failpoints are disabled
This commit is contained in:
commit
e7400b8890
@ -19,22 +19,24 @@ toggle_failpoints() {
|
|||||||
mode="$1"
|
mode="$1"
|
||||||
if command -v gofail >/dev/null 2>&1; then
|
if command -v gofail >/dev/null 2>&1; then
|
||||||
run gofail "$mode" server/etcdserver/ server/storage/backend/ server/storage/mvcc/
|
run gofail "$mode" server/etcdserver/ server/storage/backend/ server/storage/mvcc/
|
||||||
(
|
if [[ "$mode" == "enable" ]]; then
|
||||||
cd ./server
|
(
|
||||||
run go get go.etcd.io/gofail/runtime
|
cd ./server
|
||||||
) || exit 2
|
run go get go.etcd.io/gofail/runtime
|
||||||
(
|
) || exit 2
|
||||||
cd ./etcdutl
|
(
|
||||||
run go get go.etcd.io/gofail/runtime
|
cd ./etcdutl
|
||||||
) || exit 2
|
run go get go.etcd.io/gofail/runtime
|
||||||
(
|
) || exit 2
|
||||||
cd ./etcdctl
|
(
|
||||||
run go get go.etcd.io/gofail/runtime
|
cd ./etcdctl
|
||||||
) || exit 2
|
run go get go.etcd.io/gofail/runtime
|
||||||
(
|
) || exit 2
|
||||||
cd ./tests
|
(
|
||||||
run go get go.etcd.io/gofail/runtime
|
cd ./tests
|
||||||
) || exit 2
|
run go get go.etcd.io/gofail/runtime
|
||||||
|
) || exit 2
|
||||||
|
fi
|
||||||
elif [[ "$mode" != "disable" ]]; then
|
elif [[ "$mode" != "disable" ]]; then
|
||||||
log_error "FAILPOINTS set but gofail not found"
|
log_error "FAILPOINTS set but gofail not found"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user