Bug 1328273 - Log mozrunner.utils failure messages at the error level, r?jgraham
MozReview-Commit-ID: A6d9fkA194r
--- a/testing/mozbase/mozrunner/mozrunner/utils.py
+++ b/testing/mozbase/mozrunner/mozrunner/utils.py
@@ -157,18 +157,18 @@ def test_environment(xrePath, env=None,
try:
# Symbolizer support
llvmsym = os.path.join(xrePath, "llvm-symbolizer")
if os.path.isfile(llvmsym):
env["ASAN_SYMBOLIZER_PATH"] = llvmsym
log.info("INFO | runtests.py | ASan using symbolizer at %s"
% llvmsym)
else:
- log.info("TEST-UNEXPECTED-FAIL | runtests.py | Failed to find"
- " ASan symbolizer at %s" % llvmsym)
+ log.error("TEST-UNEXPECTED-FAIL | runtests.py | Failed to find"
+ " ASan symbolizer at %s" % llvmsym)
# Returns total system memory in kilobytes.
# Works only on unix-like platforms where `free` is in the path.
totalMemory = int(os.popen("free").readlines()[1].split()[1])
# Only 4 GB RAM or less available? Use custom ASan options to reduce
# the amount of resources required to do the tests. Standard options
# will otherwise lead to OOM conditions on the current test slaves.
@@ -213,18 +213,18 @@ def test_environment(xrePath, env=None,
if tsan and mozinfo.isLinux:
# Symbolizer support.
llvmsym = os.path.join(xrePath, "llvm-symbolizer")
if os.path.isfile(llvmsym):
env["TSAN_OPTIONS"] = "external_symbolizer_path=%s" % llvmsym
log.info("INFO | runtests.py | TSan using symbolizer at %s"
% llvmsym)
else:
- log.info("TEST-UNEXPECTED-FAIL | runtests.py | Failed to find TSan"
- " symbolizer at %s" % llvmsym)
+ log.error("TEST-UNEXPECTED-FAIL | runtests.py | Failed to find TSan"
+ " symbolizer at %s" % llvmsym)
return env
def get_stack_fixer_function(utilityPath, symbolsPath):
"""
Return a stack fixing function, if possible, to use on output lines.