Skip to content

Commit

Permalink
Use virtualenv2 in tests/wpt/run.sh if installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Keall committed Sep 10, 2014
1 parent aafab19 commit 1dc399d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/wpt/run.sh
Expand Up @@ -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
Expand Down

0 comments on commit 1dc399d

Please sign in to comment.