@@ -94,7 +94,7 @@ psm::lb::get_tests() {
94
94
# Test xUnit report to ${TEST_XML_OUTPUT_DIR}/${test_name}/sponge_log.xml
95
95
# ######################################
96
96
psm::lb::run_test () {
97
- local test_name=" ${1:? missing the test name argument} "
97
+ local test_name=" ${1:? ${FUNCNAME[0]} missing the test name argument} "
98
98
psm::tools::print_test_flags " ${test_name} "
99
99
psm::tools::run_verbose python -m " tests.${test_name} " " ${PSM_TEST_FLAGS[@]} "
100
100
}
@@ -135,14 +135,14 @@ psm::security::get_tests() {
135
135
# Test xUnit report to ${TEST_XML_OUTPUT_DIR}/${test_name}/sponge_log.xml
136
136
# ######################################
137
137
psm::security::run_test () {
138
- local test_name=" ${1:? missing the test name argument} "
138
+ local test_name=" ${1:? ${FUNCNAME[0]} missing the test name argument} "
139
139
140
140
# Only java supports extra checks for certificate matches (via channelz socket info).
141
141
if [[ " ${GRPC_LANGUAGE} " != " java" ]]; then
142
142
PSM_TEST_FLAGS+=(" --nocheck_local_certs" )
143
143
fi
144
144
145
- psm::tools::print_test_flags
145
+ psm::tools::print_test_flags " ${test_name} "
146
146
psm::tools::run_verbose python -m " tests.${test_name} " " ${PSM_TEST_FLAGS[@]} "
147
147
}
148
148
@@ -177,11 +177,11 @@ psm::url_map::get_tests() {
177
177
# Test xUnit report to ${TEST_XML_OUTPUT_DIR}/${test_name}/sponge_log.xml
178
178
# ######################################
179
179
psm::url_map::run_test () {
180
- local test_name=" ${1:? missing the test name argument} "
180
+ local test_name=" ${1:? ${FUNCNAME[0]} missing the test name argument} "
181
181
PSM_TEST_FLAGS+=(
182
182
" --flagfile=config/url-map.cfg"
183
183
)
184
- psm::tools::print_test_flags
184
+ psm::tools::print_test_flags " ${test_name} "
185
185
psm::tools::run_verbose python -m " tests.${test_name} " " ${PSM_TEST_FLAGS[@]} "
186
186
}
187
187
@@ -223,11 +223,11 @@ psm::csm::get_tests() {
223
223
# Test xUnit report to ${TEST_XML_OUTPUT_DIR}/${test_name}/sponge_log.xml
224
224
# ######################################
225
225
psm::csm::run_test () {
226
- local test_name=" ${1:? missing the test name argument} "
226
+ local test_name=" ${1:? ${FUNCNAME[0]} missing the test name argument} "
227
227
PSM_TEST_FLAGS+=(
228
228
" --flagfile=config/common-csm.cfg"
229
229
)
230
- psm::tools::print_test_flags
230
+ psm::tools::print_test_flags " ${test_name} "
231
231
psm::tools::run_verbose python -m " tests.${test_name} " " ${PSM_TEST_FLAGS[@]} "
232
232
}
233
233
@@ -255,7 +255,7 @@ psm::csm::run_test() {
255
255
# Writes the output of test execution to stdout, stderr
256
256
# ######################################
257
257
psm::run () {
258
- local test_suite=" ${1:? missing the test suite argument} "
258
+ local test_suite=" ${1:? ${FUNCNAME[0]} missing the test suite argument} "
259
259
psm::setup::docker_image_names " ${GRPC_LANGUAGE} " " ${test_suite} "
260
260
261
261
case " ${test_suite} " in
@@ -281,7 +281,7 @@ psm::run() {
281
281
# TBD
282
282
# ######################################
283
283
psm::run::test_suite () {
284
- local test_suite=" ${1:? missing the test suite argument} "
284
+ local test_suite=" ${1:? ${FUNCNAME[0]} missing the test suite argument} "
285
285
cd " ${TEST_DRIVER_FULL_DIR} "
286
286
local failed_tests=0
287
287
for test_name in " ${TESTS[@]} " ; do
@@ -311,8 +311,8 @@ psm::run::test_suite() {
311
311
# ######################################
312
312
psm::run::test () {
313
313
# Test driver usage: https://github.com/grpc/psm-interop#basic-usage
314
- local test_suite=" ${1:? missing the test suite argument} "
315
- local test_name=" ${2:? missing the test name argument} "
314
+ local test_suite=" ${1:? ${FUNCNAME[0]} missing the test suite argument} "
315
+ local test_name=" ${2:? ${FUNCNAME[0]} missing the test name argument} "
316
316
local out_dir=" ${TEST_XML_OUTPUT_DIR} /${test_name} "
317
317
local test_log=" ${out_dir} /sponge_log.log"
318
318
mkdir -p " ${out_dir} "
@@ -346,7 +346,7 @@ psm::run::test() {
346
346
# --- Common test setup logic -----------
347
347
348
348
psm::setup::generic_test_suite () {
349
- local test_suite=" ${1:? missing the test suite argument} "
349
+ local test_suite=" ${1:? ${FUNCNAME[0]} missing the test suite argument} "
350
350
" psm::${test_suite} ::setup"
351
351
psm::setup::test_driver
352
352
psm::build::docker_images_if_needed
@@ -372,8 +372,8 @@ psm::setup::generic_test_suite() {
372
372
# Test xUnit report to ${TEST_XML_OUTPUT_DIR}/${test_name}/sponge_log.xml
373
373
# ######################################
374
374
psm::setup::docker_image_names () {
375
- local language=" ${1:? missing the language argument} "
376
- local test_suite=" ${2:? missing the test suite argument} "
375
+ local language=" ${1:? ${FUNCNAME[0]} missing the language argument} "
376
+ local test_suite=" ${2:? ${FUNCNAME[0]} missing the test suite argument} "
377
377
378
378
case " ${language} " in
379
379
java | cpp | python)
@@ -472,7 +472,7 @@ psm::build::docker_images_if_needed() {
472
472
# Writes the output of docker image build stdout, stderr
473
473
# ######################################
474
474
psm::build::docker_images_generic () {
475
- local client_dockerfile=" ${1:? missing the client dockerfile argument} "
475
+ local client_dockerfile=" ${1:? ${FUNCNAME[0]} missing the client dockerfile argument} "
476
476
local server_dockerfile=" ${2:- } "
477
477
pushd " ${SRC_DIR} "
478
478
@@ -521,7 +521,7 @@ psm::tools::log() {
521
521
}
522
522
523
523
psm::tools::print_test_flags () {
524
- local test_name=" ${1:? missing the test name argument} "
524
+ local test_name=" ${1:? ${FUNCNAME[0]} missing the test name argument} "
525
525
psm::tools::log " Test driver flags for ${test_name} :"
526
526
printf -- " %s\n" " ${PSM_TEST_FLAGS[@]} "
527
527
echo
0 commit comments