mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Merge pull request #3271 from duncankl/virtualenv2-fix
Use virtualenv2 in tests/wpt/run.sh if installed
This commit is contained in:
commit
816e816329
1 changed files with 3 additions and 2 deletions
|
@ -6,9 +6,10 @@ set -e
|
|||
|
||||
servo_root=$(pwd)
|
||||
|
||||
PYTHON=$(which python2.7 2> /dev/null || echo python)
|
||||
PYTHON=$(which python2 2> /dev/null || echo python)
|
||||
VIRTUALENV=$(which virtualenv2 2> /dev/null || echo virtualenv)
|
||||
|
||||
test -d _virtualenv || virtualenv _virtualenv -p $PYTHON
|
||||
test -d _virtualenv || $VIRTUALENV _virtualenv -p $PYTHON
|
||||
test -d $servo_root/tests/wpt/metadata || mkdir -p $servo_root/tests/wpt/metadata
|
||||
test -d $servo_root/tests/wpt/prefs || mkdir -p $servo_root/tests/wpt/prefs
|
||||
source _virtualenv/bin/activate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue