bug 372581 Run unit tests on a pre-existing debug build - add --utility-path param to runreftest.py. r=bsmedberg

--HG--
extra : rebase_source : d97ab3937ee153994d778ec92c345e71e5a17f17
This commit is contained in:
Ted Mielczarek 2009-09-29 08:31:49 -04:00
parent 8879185a87
commit ca6bdd4ef2
2 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,11 @@ def main():
"refcounted objects (or bytes in classes with "
"MOZ_COUNT_CTOR and MOZ_COUNT_DTOR) is greater "
"than the given number")
parser.add_option("--utility-path",
action = "store", type = "string", dest = "utilityPath",
default = automation.DIST_BIN,
help = "absolute path to directory containing utility "
"programs (xpcshell, ssltunnel, certutil)")
options, args = parser.parse_args()
@ -147,6 +152,7 @@ Are you executing $objdir/_tests/reftest/runreftest.py?""" \
# Don't care about this |status|: |runApp()| reporting it should be enough.
status = automation.runApp(None, browserEnv, options.app, profileDir,
["-silent"],
utilityPath = options.utilityPath,
xrePath=options.xrePath,
symbolsPath=options.symbolsPath)
# We don't care to call |processLeakLog()| for this step.
@ -162,6 +168,7 @@ Are you executing $objdir/_tests/reftest/runreftest.py?""" \
reftestlist = getFullPath(args[0])
status = automation.runApp(None, browserEnv, options.app, profileDir,
["-reftest", reftestlist],
utilityPath = options.utilityPath,
xrePath=options.xrePath,
symbolsPath=options.symbolsPath)
processLeakLog(leakLogFile, options.leakThreshold)

View File

@ -511,6 +511,7 @@ Are you executing $objdir/_tests/testing/mochitest/runtests.py?"""
# Don't care about this |status|: |runApp()| reporting it should be enough.
status = automation.runApp(None, browserEnv, options.app,
PROFILE_DIRECTORY, ["-silent"],
utilityPath = options.utilityPath,
xrePath = options.xrePath,
symbolsPath=options.symbolsPath)
# We don't care to call |processLeakLog()| for this step.