Skip to content
Snippets Groups Projects
Commit adffb975 authored by Mike Bradeen's avatar Mike Bradeen Committed by Michael Bradeen
Browse files

CI: Fixing path issue on venv check

ASTERISK-26826

Change-Id: I07388d16f74452cebc9c981f99044eb6b77df792
parent 4fc9e06d
No related branches found
No related tags found
3 merge requests!138Merge branch asterisk-20.3.0 into devel properly,!123Merge asterisk '20.3.0' into devel,!118Draft: manager: AOC-S support for AOCMessage
......@@ -4,7 +4,6 @@ REALTIME=0
TEST_TIMEOUT=600
source $CIDIR/ci.functions
ASTETCDIR=$DESTDIR/etc/asterisk
SETUPVENV=$TESTSUITE_DIR/setupVenv.sh
if [ x"$WORK_DIR" != x ] ; then
export AST_WORK_DIR="$(readlink -f $WORK_DIR)"
......@@ -19,11 +18,13 @@ if [ $REALTIME -eq 1 ] ; then
fi
# check to see if venv scripts exist so we can use them
if [ -f "$SETUPVENV" ] ; then
if [ -f ./setupVenv.sh ] ; then
echo "Running in Virtual Environment"
# explicitly invoking setupVenv to capture output in case of failure
./setupVenv.sh
VENVPREFIX="runInVenv.sh python "
else
echo "Running in Legacy Mode"
export PYTHONPATH=./lib/python/
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment