Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
N
nxdtest
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexedi
  • nxdtest
  • Merge Requests
  • !12

Merged
Opened Nov 10, 2021 by Kirill Smelkov@kirr
  • Report abuse
Report abuse

Emit run summary et the end

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
  • Discussion 4
  • Commits 1
  • Changes 2
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/nxdtest!12

Revert this commit

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this commit

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7