gecko/dom/imptests/updateTestharness.py
Gregory Szorc 540e3b0cd2 Bug 784841 - Part 15: Produce moz.build files for dom imported tests; r=Ms2ger
--HG--
rename : dom/imptests/writeMakefile.py => dom/imptests/writeBuildFiles.py
2013-02-25 12:46:50 -08:00

20 lines
648 B
Python

#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.
from __future__ import unicode_literals
import subprocess
repo = "https://dvcs.w3.org/hg/resources"
dest = "resources-upstream"
files = ["testharness.js", "testharness.css", "idlharness.js", "WebIDLParser.js"]
subprocess.check_call(["hg", "clone", repo, dest])
for f in files:
subprocess.check_call(["cp", "%s/%s" % (dest, f), f])
subprocess.check_call(["hg", "add", f])
subprocess.check_call(["rm", "-rf", dest])