Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8437 create network independent python venv #30

Merged
merged 1 commit into from
Oct 29, 2024
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
9 changes: 7 additions & 2 deletions run_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ CALL ibex_utils\installation_and_upgrade\define_latest_genie_python.bat
@echo on
if exist "my_venv" rd /q /s my_venv
REM this needs to be LATEST_PYTHON not LATEST_PYTHON3
"%LATEST_PYTHON%" -m venv %~dp0my_venv
echo %LATEST_PYTHON_DIR%
%LATEST_PYTHON% -m venv %~dp0my_venv
REM make a python3.exe to avoid being terminated
REM by stop_ibex_server
copy my_venv\Scripts\python.exe my_venv\Scripts\python3.exe
Expand All @@ -26,7 +27,11 @@ python3.exe -m pip install -r requirements.txt

REM run tests
python3.exe -u run_tests.py --remote

if %errorlevel% neq 0 (
@echo ERROR: Python exited with code %errorlevel%
exit /b %errorlevel%
CALL ibex_utils\installation_and_upgrade\remove_genie_python.bat %LATEST_PYTHON_DIR%
EXIT /b %errorlevel%
)

CALL ibex_utils\installation_and_upgrade\remove_genie_python.bat %LATEST_PYTHON_DIR%