config/run_spidermonkey_checks.py
author Mihai Alexandru Michis <malexandru@mozilla.com>
Fri, 17 May 2019 16:37:40 +0300
changeset 474328 c94c54aff4669f52cebc76ddad34a76f4fafd03b
parent 419629 fba6f974041a3d3c22ef95c44f6e4262e8e5c52f
child 481703 9c5b3c7e1ca2240f765d62466cc917ad778407ef
permissions -rw-r--r--
Backed out changeset 8952fe75cb7a (bug 1551218) for causing linting failures. CLOSED TREE

# 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/.

import buildconfig
import subprocess
import sys


def main(output, lib_file, *scripts):
    for script in scripts:
        retcode = subprocess.call(
            [sys.executable, script], cwd=buildconfig.topsrcdir)
        if retcode != 0:
            raise Exception(script + " failed")