mirror of
https://github.com/servo/servo.git
synced 2025-07-02 21:13:39 +01:00
Update web-platform-tests to revision 4f397167b4ed552a02201c92d363cfaecfe2c7f0
This commit is contained in:
parent
73b5bf201f
commit
84b40513c3
182 changed files with 4779 additions and 1937 deletions
|
@ -5,8 +5,8 @@ from __future__ import print_function
|
|||
import abc
|
||||
import argparse
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
import sys
|
||||
import threading
|
||||
|
@ -18,8 +18,8 @@ from collections import defaultdict, OrderedDict
|
|||
from multiprocessing import Process, Event
|
||||
|
||||
from localpaths import repo_root
|
||||
from six.moves import reload_module
|
||||
|
||||
import sslutils
|
||||
from manifest.sourcefile import read_script_metadata, js_meta_re, parse_variants
|
||||
from wptserve import server as wptserve, handlers
|
||||
from wptserve import stash
|
||||
|
@ -29,6 +29,7 @@ from wptserve.handlers import filesystem_path, wrap_pipeline
|
|||
from wptserve.utils import get_port, HTTPException
|
||||
from mod_pywebsocket import standalone as pywebsocket
|
||||
|
||||
|
||||
def replace_end(s, old, new):
|
||||
"""
|
||||
Given a string `s` that ends with `old`, replace that occurrence of `old`
|
||||
|
@ -565,6 +566,9 @@ class WebSocketDaemon(object):
|
|||
|
||||
def start_ws_server(host, port, paths, routes, bind_address, config, ssl_config,
|
||||
**kwargs):
|
||||
# Ensure that when we start this in a new process we don't inherit the
|
||||
# global lock in the logging module
|
||||
reload_module(logging)
|
||||
return WebSocketDaemon(host,
|
||||
str(port),
|
||||
repo_root,
|
||||
|
@ -576,6 +580,9 @@ def start_ws_server(host, port, paths, routes, bind_address, config, ssl_config,
|
|||
|
||||
def start_wss_server(host, port, paths, routes, bind_address, config, ssl_config,
|
||||
**kwargs):
|
||||
# Ensure that when we start this in a new process we don't inherit the
|
||||
# global lock in the logging module
|
||||
reload_module(logging)
|
||||
return WebSocketDaemon(host,
|
||||
str(port),
|
||||
repo_root,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue