-
Notifications
You must be signed in to change notification settings - Fork 51
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
testsuite: add multiple key job-info lookup tests #5575
Conversation
33d9a68
to
91a9383
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5575 +/- ##
==========================================
- Coverage 83.45% 83.45% -0.01%
==========================================
Files 487 487
Lines 82318 82318
==========================================
- Hits 68701 68695 -6
- Misses 13617 13623 +6 |
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.
LGTM, just a trivial change requested to error logging.
t/job-info/info_lookup.c
Outdated
log_msg_exit ("error parsing jobid: %s", argv[1]); | ||
|
||
if (!(keys = json_array ())) | ||
log_err_exit ("json_array"); |
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.
jansson functions don't claim to set errno so this should probably use log_msg_exit()
.
t/job-info/info_lookup.c
Outdated
if (!key) | ||
log_err_exit ("json_string_value"); | ||
if (json_array_append_new (keys, key) < 0) | ||
log_err_exit ("json_array_append_new"); |
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.
same error handling comment
Problem: In PR flux-framework#5520 "multiple key" "flux job info" tests were removed due to a feature change in "flux job info". This removed some coverage of corner cases in job-info.lookup. Add a new "job-info.lookup" RPC target helper tool and re-add a number of the previously removed "multiple key" tests.
91a9383
to
2423896
Compare
thanks! tweaked and setting MWP |
Problem: In PR #5520 "multiple key" "flux job info" tests were removed due to a feature change in "flux job info". This removed some coverage of corner cases in job-info.lookup.
Add a new "job-info.lookup" RPC target helper tool and re-add a number of the previously removed "multiple key" tests.