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
  • linux
  • tools
  • testing
  • kunit
  • kunit_tool_test.py
Find file BlameHistoryPermalink
  • Daniel Latypov's avatar
    kunit: tool: refactor how we plumb metadata into JSON · ee96d25f
    Daniel Latypov authored Feb 24, 2022
    
    
    When using --json, kunit.py run/exec/parse will produce results in
    KernelCI json format.
    As part of that, we include the build_dir that was used, and we
    (incorrectly) hardcode in the arch, etc.
    
    We'll want a way to plumb more values (as well as the correct `arch`),
    so this patch groups those fields into kunit_json.Metadata type.
    This patch should have no user visible changes.
    
    And since we only used build_dir in KunitParseRequest for json, we can
    now move it out of that struct and add it into KunitExecRequest, which
    needs it and used to get it via inheritance.
    
    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>
    ee96d25f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7