Skip to content

Commit

Permalink
*(both): replace set -e to set -ru
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 committed Dec 30, 2021
1 parent b581f78 commit e004a72
Show file tree
Hide file tree
Showing 76 changed files with 76 additions and 76 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eu
ulimit -n 1000000

DEPLOY_DIR={{ deploy_dir }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eu
ulimit -n 1000000

DEPLOY_DIR={{ deploy_dir }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eu
ulimit -n 1000000

DEPLOY_DIR={{ deploy_dir }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eu
ulimit -n 1000000

DEPLOY_DIR={{ deploy_dir }}
Expand Down
2 changes: 1 addition & 1 deletion dm/dm/dm-ansible/roles/grafana/templates/run_grafana.sh.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eu
ulimit -n 1000000

# WARNING: This file was auto-generated. Do not edit!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eu
ulimit -n 1000000

DEPLOY_DIR={{ deploy_dir }}
Expand Down
2 changes: 1 addition & 1 deletion dm/dm/dm-ansible/roles/systemd/templates/start_role.sh.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eu

# WARNING: This file was auto-generated. Do not edit!
# All your edit might be overwritten!
Expand Down
2 changes: 1 addition & 1 deletion dm/dm/dm-ansible/roles/systemd/templates/stop_role.sh.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eu

# WARNING: This file was auto-generated. Do not edit!
# All your edit might be overwritten!
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/_utils/run_cdc_server
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# --addr: address
# --pd: pd address

set -e
^set -eu

workdir=
tls=
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/_utils/run_kafka_consumer
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# parameter 2: sink-uri
# parameter 3: log suffix

set -e
^set -eu

workdir=$1
sink_uri=$2
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/_utils/run_sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# parameter 3: database port
# parameter 4: other mysql client settings

set -e
^set -eu

sql=${1}

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/_utils/run_sql_file
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# parameter 2: database host
# parameter 3: database port

set -e
^set -eu

echo "[$(date)] Executing SQL: $1" >"$OUT_DIR/sql_res.$TEST_NAME.txt"
mysql -uroot -h$2 -P$3 --default-character-set utf8mb4 -vv <"$1" >>"$OUT_DIR/sql_res.$TEST_NAME.txt"
2 changes: 1 addition & 1 deletion tests/integration_tests/_utils/start_tidb_cluster
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --tidb-config: path to tidb config file
# --retry: retry times

set -e
^set -eu

OUT_DIR=
tidb_config=
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/_utils/start_tidb_cluster_impl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --tidb-config: path to tidb config file
# --multiple-upstream-pd: whether to deploy multiple pd severs in upstream

set -e
^set -eu

OUT_DIR=
tidb_config=
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/_utils/start_tls_tidb_cluster
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --tlsdir: certificates directory
# --retry: retry times

set -e
^set -eu

OUT_DIR=
TLS_DIR=
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/_utils/start_tls_tidb_cluster_impl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# --workdir: work directory
# --tlsdir: certificates directory

set -e
^set -eu

OUT_DIR=
TLS_DIR=
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/autorandom/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/availability/capture.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/availability/owner.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/availability/processor.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/availability/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/bank/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/batch_add_table/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/cdc/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/changefeed_auto_stop/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/changefeed_error/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/changefeed_fast_fail/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/changefeed_finish/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/changefeed_pause_resume/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/changefeed_reconstruct/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/cli/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/clustered_index/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/common_1/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/consistent_replicate_nfs/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/consistent_replicate_s3/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/cyclic_ab/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/cyclic_abc/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/ddl_attributes/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/ddl_puller_lag/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/ddl_reentrant/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/ddl_sequence/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/drop_many_tables/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/force_replicate_table/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/gc_safepoint/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/generate_column/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/http_api/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/kafka_big_messages/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/kafka_messages/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
^set -eu

CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $CUR/../_utils/test_prepare
Expand Down
Loading

0 comments on commit e004a72

Please sign in to comment.