зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1377007 - autospider.py,runcppunittests.py export the path to directory js/src,r=Yoric
Some tests need to find out js/src to locate their test data. Exporting this information as part of the environment. MozReview-Commit-ID: JAefL2arhJL --HG-- extra : rebase_source : b99d55c4ab4335ea938d8f3a9c733ea74f02fddf
This commit is contained in:
Родитель
e60e582ffe
Коммит
0da9f18390
|
@ -32,6 +32,7 @@ def directories(pathmodule, cwd, fixup=lambda s: s):
|
|||
DIR = directories(os.path, os.getcwd())
|
||||
PDIR = directories(posixpath, os.environ["PWD"],
|
||||
fixup=lambda s: re.sub(r'^(\w):', r'/\1', s))
|
||||
env['CPP_UNIT_TESTS_DIR_JS_SRC'] = DIR.js_src
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
description='Run a spidermonkey shell build job')
|
||||
|
|
|
@ -8,6 +8,7 @@ from __future__ import with_statement
|
|||
import sys
|
||||
import os
|
||||
from optparse import OptionParser
|
||||
from os import environ as env
|
||||
import manifestparser
|
||||
import mozprocess
|
||||
import mozinfo
|
||||
|
@ -17,6 +18,9 @@ import mozlog
|
|||
|
||||
SCRIPT_DIR = os.path.abspath(os.path.realpath(os.path.dirname(__file__)))
|
||||
|
||||
# Export directory js/src for tests that need it.
|
||||
env['CPP_UNIT_TESTS_DIR_JS_SRC'] = os.path.abspath(os.path.join(SCRIPT_DIR, "..", ".."))
|
||||
|
||||
|
||||
class CPPUnitTests(object):
|
||||
# Time (seconds) to wait for test process to complete
|
||||
|
|
Загрузка…
Ссылка в новой задаче