testing/peptest/runtests.py
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 02 Aug 2012 17:17:34 -0400
changeset 103109 f36cf6866998430dfadda7b138350083ae374537
parent 95919 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 778133 - Update mozbase in m-c for bug 776931. r=jhammel

# 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:])