testing/peptest/runtests.py
author Nicholas Nethercote <nnethercote@mozilla.com>
Tue, 09 Jul 2013 13:41:16 -0700
changeset 138441 763c1a2daaee63f011c327790fb2ff066284831b
parent 94846 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 891215 (part 16) - Slim down RegExpObject-inl.h. r=terrence.

# 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/.
"""
Adds peptest's dependencies to sys.path then runs the tests
"""
import os
import sys

deps = ['manifestdestiny',
        'mozinfo',
        'mozhttpd',
        'mozlog',
        'mozprofile',
        'mozprocess',
        'mozrunner',
       ]

here = os.path.dirname(__file__)
mozbase = os.path.realpath(os.path.join(here, '..', 'mozbase'))

for dep in deps:
    module = os.path.join(mozbase, dep)
    if module not in sys.path:
        sys.path.insert(0, module)

from peptest import runpeptests
runpeptests.main(sys.argv[1:])