Skip to content

Conversation

@ndokos
Copy link
Member

@ndokos ndokos commented Jun 17, 2022

Fixes #2903

Invoking pbench-register-tool-set with a named toolset argument, e.g.

pbench-register-tool-set light

ignores the named argument, and substitutes the default tool set, resulting in a deprecation warning and registration of the default tool set.

The option-handling code does one extra shift of the argument list falling off the end. The fix just eliminates the extra shift.

Also add a simple unit test for this case.

@ndokos ndokos added bug Agent tools Of and related to the operation and behavior of various tools (iostat, sar, etc.) labels Jun 17, 2022
@ndokos ndokos added this to the v0.72 milestone Jun 17, 2022
@ndokos ndokos requested review from portante and webbnh June 17, 2022 04:55
@ndokos ndokos self-assigned this Jun 17, 2022
ndokos added a commit to ndokos/pbench that referenced this pull request Jun 17, 2022
…ted-system-analysis#2904

Fixes distributed-system-analysis#2903

Backport of distributed-system-analysis#2904

Invoking pbench-register-tool-set with a named toolset argument, e.g.

   pbench-register-tool-set light

ignores the named argument, and substitutes the default tool set,
resulting in a deprecation warning and registration of the default
tool set.

The option-handling code does one extra shift of the argument list
falling off the end. The fix just eliminates the extra shift.

Also add a simple unit test for this case.
Fixes distributed-system-analysis#2903

Invoking pbench-register-tool-set with a named toolset argument, e.g.

   pbench-register-tool-set light

ignores the named argument, and substitutes the default tool set,
resulting in a deprecation warning and registration of the default
tool set.

The option-handling code does one extra shift of the argument list
falling off the end. The fix just eliminates the extra shift.

Also add a simple unit test for this case.
@ndokos ndokos force-pushed the fix-pbench-register-tool-set branch from d3dad89 to 4b7833d Compare June 17, 2022 05:04
@ndokos ndokos merged commit 6ba02ca into distributed-system-analysis:main Jun 17, 2022
@ndokos ndokos deleted the fix-pbench-register-tool-set branch June 17, 2022 17:01
ndokos added a commit to ndokos/pbench that referenced this pull request Jun 17, 2022
Following a comment by @dbutenhof on PR#2904 (actually, its sibling
backporting to b0.71), this PR adds a few more tests for
`pbench-register-tool-set'. There is no plan to backport this PR to b0.71
however.
portante pushed a commit that referenced this pull request Jun 17, 2022
Following a comment by @dbutenhof on PR #2904 (actually, its sibling
PR back-porting to b0.71), this PR adds a few more tests for
`pbench-register-tool-set'.
portante pushed a commit that referenced this pull request Jun 17, 2022
Fixes #2903

Back port of #2904 (6ba02ca).

Invoking pbench-register-tool-set with a named toolset argument, e.g.

    pbench-register-tool-set light

ignores the named argument, and substitutes the default tool set,
resulting in a deprecation warning and registration of the default
tool set.

The option-handling code does one extra shift of the argument list
falling off the end. The fix just eliminates the extra shift.

Also add a simple unit test for this case.
portante pushed a commit to portante/pbench that referenced this pull request Jun 23, 2022
Back-port of PR distributed-system-analysis#2908 (commit f3eca50).

Following a comment by @dbutenhof on PR distributed-system-analysis#2904 (actually, its sibling
PR back-porting to b0.71), this PR adds a few more tests for
`pbench-register-tool-set'.
portante pushed a commit that referenced this pull request Jun 24, 2022
Back-port of PR #2908 (commit f3eca50).

Following a comment by @dbutenhof on PR #2904 (actually, its sibling
PR back-porting to b0.71), this PR adds a few more tests for
`pbench-register-tool-set'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Agent bug tools Of and related to the operation and behavior of various tools (iostat, sar, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] pbench-register-tool-set does not handle a named toolset argument

3 participants