mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Use virtualenv2 in tests/wpt/run.sh if installed
This commit is contained in:
parent
aafab19e24
commit
1dc399d70a
1 changed files with 3 additions and 2 deletions
|
@ -6,9 +6,10 @@ set -e
|
||||||
|
|
||||||
servo_root=$(pwd)
|
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/metadata || mkdir -p $servo_root/tests/wpt/metadata
|
||||||
test -d $servo_root/tests/wpt/prefs || mkdir -p $servo_root/tests/wpt/prefs
|
test -d $servo_root/tests/wpt/prefs || mkdir -p $servo_root/tests/wpt/prefs
|
||||||
source _virtualenv/bin/activate
|
source _virtualenv/bin/activate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue