Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fi
# go test check
delta_test_files=`git diff --name-status origin/master | egrep "_test\.go$" | awk '{print $2}'`
for delta_test_file in ${delta_test_files}; do
test_casts=`egrep "func TestAcc.+\(" ./tencentcloud/data_source_tc_gaap_proxies_test.go | awk -F "(" '{print $1}' | awk '{print $2}'`
test_casts=`egrep "func TestAcc.+\(" ${delta_test_file} | awk -F "(" '{print $1}' | awk '{print $2}'`
for test_cast in ${test_casts}; do
go_test_cmd="go test -v -run ${test_cast} -timeout=0 ./tencentcloud/"
echo ${go_test_cmd}
Expand Down