Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • tools
  • testing
  • kunit
  • kunit_kernel.py
Find file BlameHistoryPermalink
  • Daniel Latypov's avatar
    kunit: tool: refactoring printing logic into kunit_printer.py · e756dbeb
    Daniel Latypov authored May 16, 2022
    
    
    Context:
    * kunit_kernel.py is importing kunit_parser.py just to use the
      print_with_timestamp() function
    * the parser is directly printing to stdout, which will become an issue
      if we ever try to run multiple kernels in parallel
    
    This patch introduces a kunit_printer.py file and migrates callers of
    kunit_parser.print_with_timestamp() to call
    kunit_printer.stdout.print_with_timestamp() instead.
    
    Future changes:
    If we want to support showing results for parallel runs, we could then
    create new Printer's that don't directly write to stdout and refactor
    the code to pass around these Printer objects.
    
    Signed-off-by: default avatarDaniel Latypov <dlatypov@google.com>
    Reviewed-by: default avatarDavid Gow <davidgow@google.com>
    Reviewed-by: default avatarBrendan Higgins <brendanhiggins@google.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    e756dbeb
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7