Pass extra args through to wptrunner

This commit is contained in:
James Graham 2014-04-23 17:04:34 +01:00
parent b193767350
commit 12d2539684

12
src/test/wpt/run.sh Normal file → Executable file
View file

@ -2,12 +2,16 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
cd $2/..
servo_root="$1"
objdir="$2"
shift 2
cd $objdir/..
test -d _virtualenv || virtualenv _virtualenv
test -d $1/src/test/wpt/metadata || mkdir -p $1/src/test/wpt/metadata
test -d $1/src/test/wpt/prefs || mkdir -p $1/src/test/wpt/prefs
test -d $servo_root/src/test/wpt/metadata || mkdir -p $servo_root/src/test/wpt/metadata
test -d $servo_root/src/test/wpt/prefs || mkdir -p $servo_root/src/test/wpt/prefs
source _virtualenv/bin/activate
(python -c "import html5lib" &>/dev/null) || pip install html5lib
(python -c "import wptrunner" &>/dev/null) || pip install wptrunner
python $1/src/test/wpt/run.py --binary $2/../servo
python $servo_root/src/test/wpt/run.py --binary $objdir/../servo "$@"