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
508
508
for TEST in ${SUBTESTS} ; do
509
509
# Run each subtest in a separate virtual environment to avoid conflicts
510
510
# between dependencies.
511
- setup_virtualenv
512
511
513
512
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
+
515
519
EXIT_CODE=$?
516
520
if [ $EXIT_CODE -ne 0 ]; then
517
521
echo " Subtest ${TEST} FAILED"
@@ -524,8 +528,6 @@ if [ "$TEST_JETSON" == "0" ]; then
524
528
fi
525
529
fi
526
530
set -e
527
-
528
- deactivate_virtualenv
529
531
done
530
532
531
533
# [DLIS-5969]: Incorporate env test for windows
Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ function setup_virtualenv() {
522
522
if [[ -v MSYSTEM ]]; then
523
523
pip3 install pytest
524
524
else
525
- python3 -m venv --system-site-packages venv
525
+ virtualenv --system-site-packages venv
526
526
source venv/bin/activate
527
527
pip install pytest
528
528
fi
You can’t perform that action at this time.
0 commit comments