Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • N nxdtest
  • 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
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • nxdtest
  • Merge requests
  • !12

Emit run summary et the end

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Kirill Smelkov requested to merge kirr/nxdtest:y/summary into master Nov 10, 2021
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 2

Sometimes there is zero testcases to be executed on testnodes, and log output from nxdtest is just

date:   Wed, 10 Nov 2021 12:31:50 MSK
xnode:  kirr@deca.navytux.spb.ru
uname:  Linux deca 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64
cpu:    Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz

it is not clear from such output did the run ended or the test got stuck. After this patch it becomes

date:   Wed, 10 Nov 2021 12:31:50 MSK
xnode:  kirr@deca.navytux.spb.ru
uname:  Linux deca 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64
cpu:    Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
# ran 0 test cases.

And in general, when there are several testcases to be run, it is helpful to indicate end of such run and to print brief summary of result status for all ran test cases. Example output:

wendelin.core$ nxdtest -k test.wcfs
date:   Wed, 10 Nov 2021 12:35:34 MSK
xnode:  kirr@deca.navytux.spb.ru
uname:  Linux deca 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64
cpu:    Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
>>> test.wcfs/fs:1
...
ok      test.wcfs/fs:1  25.035s # 35t 0e 0f 0s

>>> test.wcfs/fs:2
...
ok      test.wcfs/fs:2  21.033s # 35t 0e 0f 0s

>>> test.wcfs/fs:
...
ok      test.wcfs/fs:   21.056s # 35t 0e 0f 0s
# ran 3 test cases:  3·ok

/cc @jerome

Edited Nov 10, 2021 by Kirill Smelkov
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: y/summary
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7