Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jun 18, 2019

@maflcko
Copy link
Member Author

maflcko commented Jun 18, 2019

Requested by @hebasto as part of #16112 (comment)

@DrahtBot DrahtBot added the Tests label Jun 18, 2019
@hebasto
Copy link
Member

hebasto commented Jun 19, 2019

Approach ACK.
Going to test tonight.

@promag
Copy link
Contributor

promag commented Jun 19, 2019

I really thought this was already tested, actually it's was added only in

self.assert_raises_tool_error('Error parsing command line arguments: Invalid parameter -foo', '-foo')

ACK fa7dd88, tests looks good to me.

@hebasto
Copy link
Member

hebasto commented Jun 20, 2019

ACK fa7dd88, I have tested the code.

maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Jun 20, 2019
fa7dd88 test: Add test for unknown args (MarcoFalke)

Pull request description:

  Currently uncovered.

  Further reading:

  * https://marcofalke.github.io/btc_cov/total.coverage/src/util/system.cpp.gcov.html
  *  Fail on unknown config file options bitcoin#15021

ACKs for commit fa7dd8:
  promag:
    ACK fa7dd88, tests looks good to me.
  hebasto:
    ACK fa7dd88, I have tested the code.

Tree-SHA512: 86ab370ce8e85925f945a52e81457b5678d71bbabcef01205a97782b780003f363552e0bad1ff678bccc784f82c6b511c3b88de3f8f25f62b0b713c387950564
@maflcko maflcko merged commit fa7dd88 into bitcoin:master Jun 20, 2019
@maflcko maflcko deleted the 1906-unknownArgs branch June 20, 2019 21:01
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 20, 2019
fa7dd88 test: Add test for unknown args (MarcoFalke)

Pull request description:

  Currently uncovered.

  Further reading:

  * https://marcofalke.github.io/btc_cov/total.coverage/src/util/system.cpp.gcov.html
  *  Fail on unknown config file options bitcoin#15021

ACKs for commit fa7dd8:
  promag:
    ACK fa7dd88, tests looks good to me.
  hebasto:
    ACK fa7dd88, I have tested the code.

Tree-SHA512: 86ab370ce8e85925f945a52e81457b5678d71bbabcef01205a97782b780003f363552e0bad1ff678bccc784f82c6b511c3b88de3f8f25f62b0b713c387950564
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Mar 26, 2020
Summary:
`Currently uncovered.`

Backport of core [[bitcoin/bitcoin#16234 | PR16234]].

Depends on D5554.

Test Plan:
  ninja check-functional

Reviewers: #bitcoin_abc, nakihito

Reviewed By: nakihito

Differential Revision: https://reviews.bitcoinabc.org/D5555
maflcko pushed a commit that referenced this pull request Oct 19, 2020
fa48405 Warn on unknown rw_settings (MarcoFalke)

Pull request description:

  Log a warning to debug log if unknown settings are encountered. This should probably only ever happen when the software is upgraded.

  Something similar is already done for the command line and config file. See:

  * test: Add test for unknown args #16234 (commit fa7dd88)

ACKs for top commit:
  ryanofsky:
    Code review ACK fa48405. Looks good and I could see this being helpful for debugging. Thanks for taking suggestions

Tree-SHA512: cec7d88adf84fa0a842f56b26245157736eb50df433db951e622ea07fd145b899822b24cdab1d8b36c066415ce4f0ef09b493fa8a8d691532822a59c573aafa7
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Oct 19, 2020
fa48405 Warn on unknown rw_settings (MarcoFalke)

Pull request description:

  Log a warning to debug log if unknown settings are encountered. This should probably only ever happen when the software is upgraded.

  Something similar is already done for the command line and config file. See:

  * test: Add test for unknown args bitcoin#16234 (commit fa7dd88)

ACKs for top commit:
  ryanofsky:
    Code review ACK fa48405. Looks good and I could see this being helpful for debugging. Thanks for taking suggestions

Tree-SHA512: cec7d88adf84fa0a842f56b26245157736eb50df433db951e622ea07fd145b899822b24cdab1d8b36c066415ce4f0ef09b493fa8a8d691532822a59c573aafa7
linuxsh2 pushed a commit to linuxsh2/dash that referenced this pull request Aug 11, 2021
fa7dd88 test: Add test for unknown args (MarcoFalke)

Pull request description:

  Currently uncovered.

  Further reading:

  * https://marcofalke.github.io/btc_cov/total.coverage/src/util/system.cpp.gcov.html
  *  Fail on unknown config file options bitcoin#15021

ACKs for commit fa7dd8:
  promag:
    ACK fa7dd88, tests looks good to me.
  hebasto:
    ACK fa7dd88, I have tested the code.

Tree-SHA512: 86ab370ce8e85925f945a52e81457b5678d71bbabcef01205a97782b780003f363552e0bad1ff678bccc784f82c6b511c3b88de3f8f25f62b0b713c387950564
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 25, 2021
Summary:
Log a warning to debug log if unknown settings are encountered. This should probably only ever happen when the software is upgraded.

Something similar is already done for the command line and config file. See [[bitcoin/bitcoin#16234 | core#16234]]

This is a backport of [[bitcoin/bitcoin#19624 | core#19624]]

Test Plan: `ninja all check-all`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10541
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants