Bug 1152872 - Don't attempt to leak-check the tools that we run as part of the setup for the mochitest suite; r=mccr8

This commit is contained in:
Ehsan Akhgari 2015-04-09 13:07:09 -04:00
Родитель 8525913029
Коммит 6483401f34
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -1277,6 +1277,10 @@ class Mochitest(MochitestUtilsMixin):
bin_suffix = mozinfo.info.get('bin_suffix', '')
certutil = os.path.join(options.utilityPath, "certutil" + bin_suffix)
pk12util = os.path.join(options.utilityPath, "pk12util" + bin_suffix)
toolsEnv = env
if mozinfo.info["asan"]:
# Disable leak checking when running these tools
toolsEnv["ASAN_OPTIONS"] = "detect_leaks=0"
if self.certdbNew:
# android and b2g use the new DB formats exclusively
@ -1286,7 +1290,7 @@ class Mochitest(MochitestUtilsMixin):
certdbPath = options.profilePath
status = call(
[certutil, "-N", "-d", certdbPath, "-f", pwfilePath], env=env)
[certutil, "-N", "-d", certdbPath, "-f", pwfilePath], env=toolsEnv)
if status:
return status
@ -1311,11 +1315,11 @@ class Mochitest(MochitestUtilsMixin):
root,
"-t",
trustBits],
env=env)
env=toolsEnv)
elif ext == ".client":
call([pk12util, "-i", os.path.join(options.certPath, item),
"-w", pwfilePath, "-d", certdbPath],
env=env)
env=toolsEnv)
os.unlink(pwfilePath)
return 0