Closed Bug 1800467 Opened 2 years ago Closed 2 years ago

mozlog.structuredlog: Failure calling log handler

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1800494

People

(Reporter: evilpie, Unassigned)

Details

While running the command ./mach wpt --headless content-security-policy/securitypolicyviolation, test failures can't be logged due to an error.

 0:51.19 INFO Got 2 unexpected results, with 0 unexpected passes
mozlog.structuredlog: Failure calling log handler:
Traceback (most recent call last):
  File "/home/tom/projects/mozilla/third_party/python/blessed/blessed/formatters.py", line 95, in __call__
    attr = curses.tparm(self.encode('latin1'), *args).decode('latin1')
TypeError: 'str' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/structuredlog.py", line 294, in _handle_log
    handler(data)
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/handlers/base.py", line 74, in __call__
    formatted = self.formatter(data)
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/handlers/base.py", line 42, in __call__
    return self.inner(item)
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/formatters/machformatter.py", line 100, in __call__
    s = super(MachFormatter, self).__call__(data)
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/reader.py", line 74, in __call__
    return handler(data)
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/formatters/machformatter.py", line 147, in suite_end
    self._format_suite_summary(
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/formatters/machformatter.py", line 295, in _format_suite_summary
    rv.append("  %s" % self._format_status(test, data).rstrip())
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/formatters/machformatter.py", line 182, in _format_status
    rv += self._format_stack(data["stack"])
  File "/home/tom/projects/mozilla/testing/mozbase/mozlog/mozlog/formatters/machformatter.py", line 186, in _format_stack
    return "\n%s\n" % self.color_formatter.dim(stack.strip("\n"))
  File "/home/tom/projects/mozilla/third_party/python/blessed/blessed/formatters.py", line 101, in __call__
    raise TypeError(
TypeError: Unknown terminal capability, 'dim', or, TypeError for arguments ('@http://web-platform.test:8000/content-security-policy/securitypolicyviolation/source-file-blob-scheme.html:10:26\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:2590:25\nTest.prototype.step_func_done/<@http://web-platform.test:8000/resources/testharness.js:2665:32',): 'str' object cannot be interpreted as an integer
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1800494
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.