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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user