File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -508,10 +508,14 @@ if [ "$TEST_JETSON" == "0" ]; then
508508 for TEST in ${SUBTESTS} ; do
509509 # Run each subtest in a separate virtual environment to avoid conflicts
510510 # between dependencies.
511- setup_virtualenv
512511
513512 set +e
514- (cd ${TEST} && bash -ex test.sh)
513+ (
514+ setup_virtualenv
515+ cd ${TEST} && bash -ex test.sh
516+ deactivate_virtualenv
517+ )
518+
515519 EXIT_CODE=$?
516520 if [ $EXIT_CODE -ne 0 ]; then
517521 echo " Subtest ${TEST} FAILED"
@@ -524,8 +528,6 @@ if [ "$TEST_JETSON" == "0" ]; then
524528 fi
525529 fi
526530 set -e
527-
528- deactivate_virtualenv
529531 done
530532
531533 # [DLIS-5969]: Incorporate env test for windows
Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ function setup_virtualenv() {
522522 if [[ -v MSYSTEM ]]; then
523523 pip3 install pytest
524524 else
525- python3 -m venv --system-site-packages venv
525+ virtualenv --system-site-packages venv
526526 source venv/bin/activate
527527 pip install pytest
528528 fi
You can’t perform that action at this time.
0 commit comments