dom/imptests/updateTestharness.py
author Kyle Machulis <kyle@nonpolynomial.com>
Fri, 29 Mar 2013 13:56:18 -0700
changeset 126734 03452b187c1406f07556cf5f0db7e99cc3a93aae
parent 123218 c1b0d8399be92a0a541fddec5e580196e7b83e32
child 138822 bf423f63b3a1f714d9bac8871504abc5b38e2bfc
permissions -rw-r--r--
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps

#!/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])