mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Pass extra args through to wptrunner
This commit is contained in:
parent
b193767350
commit
12d2539684
1 changed files with 8 additions and 4 deletions
12
src/test/wpt/run.sh
Normal file → Executable file
12
src/test/wpt/run.sh
Normal file → Executable file
|
@ -2,12 +2,16 @@
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# 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/.
|
# 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 _virtualenv || virtualenv _virtualenv
|
||||||
test -d $1/src/test/wpt/metadata || mkdir -p $1/src/test/wpt/metadata
|
test -d $servo_root/src/test/wpt/metadata || mkdir -p $servo_root/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/prefs || mkdir -p $servo_root/src/test/wpt/prefs
|
||||||
source _virtualenv/bin/activate
|
source _virtualenv/bin/activate
|
||||||
(python -c "import html5lib" &>/dev/null) || pip install html5lib
|
(python -c "import html5lib" &>/dev/null) || pip install html5lib
|
||||||
(python -c "import wptrunner" &>/dev/null) || pip install wptrunner
|
(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 "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue