mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
bug 990266 - use mozinfo in xpcshell selftests r=jmaher
This commit is contained in:
parent
c87e310e5f
commit
5ba7b3d366
@ -6,6 +6,8 @@
|
||||
|
||||
from __future__ import with_statement
|
||||
import sys, os, unittest, tempfile, shutil
|
||||
import mozinfo
|
||||
|
||||
from StringIO import StringIO
|
||||
from xml.etree.ElementTree import ElementTree
|
||||
|
||||
@ -14,6 +16,8 @@ build_obj = MozbuildObject.from_environment()
|
||||
|
||||
from runxpcshelltests import XPCShellTests
|
||||
|
||||
mozinfo.find_and_update_from_json()
|
||||
|
||||
objdir = build_obj.topobjdir.encode("utf-8")
|
||||
xpcshellBin = os.path.join(objdir, "dist", "bin", "xpcshell")
|
||||
if sys.platform == "win32":
|
||||
@ -272,7 +276,7 @@ tail =
|
||||
self.assertEquals(expected,
|
||||
self.x.runTests(xpcshellBin,
|
||||
manifest=self.manifest,
|
||||
mozInfo={},
|
||||
mozInfo=mozinfo.info,
|
||||
shuffle=shuffle,
|
||||
testsRootDir=self.tempdir,
|
||||
verbose=verbose,
|
||||
|
Loading…
Reference in New Issue
Block a user