-
Notifications
You must be signed in to change notification settings - Fork 49
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
add flux-lptest #6301
add flux-lptest #6301
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, why not? 👍
src/cmd/builtin/lptest.c
Outdated
} | ||
|
||
// vi:ts=4 sw=4 expandtab | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python linter maybe didn't like this trailing line? 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What it's checking C files now??? Ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I guess this set of pre-commit hooks are not Python specific:
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not realize that!
Problem: the "lptest" test program in t/shell/lptest.c is useful for diagnosing problems with standard I/O buffering outside of the testsuite. Since it is so trivial, just make it a built-in flux command.
Problem: the test suite lptest executable now duplicates flux lptest. Remove the test suite version and point tests at the flux version.
OK well that did it. I'll set MWP - thanks! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6301 +/- ##
==========================================
+ Coverage 83.32% 83.34% +0.02%
==========================================
Files 522 523 +1
Lines 86093 86124 +31
==========================================
+ Hits 71733 71780 +47
+ Misses 14360 14344 -16
|
Problem the
lptest
utility is useful for testing standard I/O buffering on a deployed system, but it only exists in the source tree.At least, I keep finding a use for it and accessing it is not always convenient.
This elevates the
lptest
test program to a flux command.I didn't feel a man page was warranted for this one.