regression_test: run in virtual environment if virtual environment exists

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2022-01-07 10:50:26 -08:00
committed by shivam
parent b54e12e623
commit d8fa486d13

View File

@@ -106,6 +106,7 @@ git pull --rebase
python3 -m pip install --upgrade pip
if [ -d "/home/lanforge/lanforge_env" ]
then
source /home/lanforge/lanforge_env/bin/activate
pip3 install --upgrade lanforge-scripts
else
pip3 install --user -r ../requirements.txt --upgrade