Update run.sh and run.py for changes to wptrunner.

This commit is contained in:
Ms2ger 2014-07-28 14:00:03 +02:00
parent e2ccda060b
commit 326671577c
3 changed files with 21 additions and 3 deletions

12
src/test/wpt/config.ini Normal file
View file

@ -0,0 +1,12 @@
#TODO: most of this doesn't really need to be configurable like this
[web-platform-tests]
remote_url = https://github.com/w3c/web-platform-tests.git
branch = master
sync_path = web-platform-tests
[local]
test_path = tests
metadata_path = metadata
[try]
url = ssh://hg.mozilla.org/try

View file

@ -36,10 +36,13 @@ def set_defaults(args):
args.product = "servo"
args.debug_args = None
args.interactive = False
return vars(args)
args.chunk_type = "none"
rv = vars(args)
wptcommandline.check_args(rv)
return rv
def main():
parser = wptcommandline.create_parser(False)
parser = wptcommandline.create_parser(product_choices=('servo',))
parser.add_argument('--update-manifest', dest='update_manifest', action='store_true')
args = parser.parse_args()
if args.update_manifest:

View file

@ -16,4 +16,7 @@ if [[ $* == *--update-manifest* ]]; then
fi
(python -c "import wptrunner" &>/dev/null) || pip install wptrunner
python $servo_root/src/test/wpt/run.py --binary $objdir/../servo "$@"
python $servo_root/src/test/wpt/run.py \
--config $servo_root/src/test/wpt/config.ini \
--binary $objdir/../servo \
"$@"