Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: fix type mismatch in test runner #38289

Merged
merged 1 commit into from Apr 21, 2021

Commits on Apr 21, 2021

  1. tools: fix type mismatch in test runner

    `output.diagnostic` is a list that is appended to on SmartOS when
    retrying a test due to `ECONNREFUSED`. The test runner checks if
    `output.diagnostic` is truthy and, if so, assigns its value to
    `self.traceback`. However `self.traceback` is supposed to be a string,
    and `_printDiagnostic()` in the `TapProgressIndicator` attempts to call
    `splitlines()` on it, which fails if it is a list with:
    AttributeError: 'list' object has no attribute 'splitlines'
    
    PR-URL: nodejs#38289
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Christian Clauss <cclauss@me.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    richardlau committed Apr 21, 2021
    Copy the full SHA
    e703ceb View commit details
    Browse the repository at this point in the history