mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests.
This commit is contained in:
parent
74afd086d2
commit
71008d816d
62 changed files with 793 additions and 150 deletions
|
@ -13,9 +13,13 @@ def is_git_repo(tests_root):
|
|||
|
||||
|
||||
_repo_root = None
|
||||
def get_repo_root():
|
||||
def get_repo_root(initial_dir=None):
|
||||
global _repo_root
|
||||
|
||||
if initial_dir is None:
|
||||
initial_dir = os.path.dirname(__file__)
|
||||
|
||||
if _repo_root is None:
|
||||
git = get_git_func(os.path.dirname(__file__))
|
||||
git = get_git_func(initial_dir)
|
||||
_repo_root = git("rev-parse", "--show-toplevel").rstrip()
|
||||
return _repo_root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue