Skip to content

Commit 20a949f

Browse files
committed
Passing properties to the subtests
1 parent df040e3 commit 20a949f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

qa/L0_backend_python/test.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ if [ "$TEST_JETSON" == "0" ]; then
197197
subtest_properties["bls"]=""
198198
subtest_properties["decoupled"]=""
199199
subtest_properties["response_sender"]=""
200-
subtest_properties["env"]=""
200+
subtest_properties["env"]="locale"
201201
fi
202202

203203
# If not running on windows add these
@@ -231,8 +231,6 @@ for subtest in $(echo "${!subtest_properties[@]}"); do
231231
echo " ${subtest}: ${subtest_properties[${subtest}]}"
232232
done
233233

234-
exit 0
235-
236234
if [[ "${ALL_SUBTETS}" =~ "shared_memory" ]]; then
237235
bash -ex test_shared_memory.sh
238236
fi
@@ -247,7 +245,7 @@ for TEST in ${ALL_SUBTESTS}; do
247245
setup_virtualenv
248246

249247
set +e
250-
(cd ${TEST} && bash -ex test.sh)
248+
(cd ${TEST} && PROPERTIES="${subtest_properties["${TEST}"]}" bash -ex test.sh)
251249
EXIT_CODE=$?
252250
if [ $EXIT_CODE -ne 0 ]; then
253251
echo "Subtest ${TEST} FAILED"
@@ -264,11 +262,11 @@ for TEST in ${ALL_SUBTESTS}; do
264262
deactivate_virtualenv
265263
done
266264

267-
if [[ ${ALL_SUBTESTS} =~ "env" ]]; then
265+
if [[ "${ALL_SUBTESTS}" =~ "env" ]]; then
268266
# In 'env' test we use miniconda for dependency management. No need to run
269267
# the test in a virtual environment.
270268
set +e
271-
(cd env && bash -ex test.sh)
269+
(cd env && PROPERTIES="${subtest_properties["env"]}" bash -ex test.sh)
272270
if [ $? -ne 0 ]; then
273271
echo "Subtest env FAILED"
274272
RET=1

0 commit comments

Comments
 (0)