Skip to content

tests: Add usage note to check-rpc-mappings.py - #13707

Merged
laanwj merged 1 commit into
bitcoin:masterfrom
masonicboom:add-usage-note-to-check-rpc-mappings
Aug 25, 2018
Merged

laanwj merged 1 commit into
bitcoin:masterfrom
masonicboom:add-usage-note-to-check-rpc-mappings

Conversation

@masonicboom

Copy link
Copy Markdown

This test would previously fail without a user-friendly warning message, if invoked with no arguments.

Test plan:

bitcoin @_@$ python3 test/lint/check-rpc-mappings.py
Usage: test/lint/check-rpc-mappings.py ROOT-DIR
bitcoin @_@$ echo $?
1
bitcoin @_@$ python3 test/lint/check-rpc-mappings.py .
* Checking consistency between dispatch tables and vRPCConvertParams
bitcoin @_@$ echo $?
0

@fanquake fanquake added the Tests label Jul 19, 2018
@masonicboom masonicboom changed the title Tests: add usage note to check-rpc-mappings.py tests: add usage note to check-rpc-mappings.py Jul 19, 2018
@masonicboom masonicboom changed the title tests: add usage note to check-rpc-mappings.py tests: Add usage note to check-rpc-mappings.py Jul 19, 2018
Comment thread test/lint/check-rpc-mappings.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Remove redundant parentheses around ' and use .format(…).

maflcko pushed a commit that referenced this pull request Jul 20, 2018
b1b8863 docs: Specify preferred Python string formatting technique (Mason Simon)

Pull request description:

  @practicalswift this documents the nit you suggested in my previous PR
  #13707 (comment)

Tree-SHA512: b75335976b30ccbce5c2e3a46e5b6218e797944e7025c17b4e56f294670397d731e1a9f4fe7e809d907136e2e62cd9c2b8404b875b4879a1e3f0b1970b94d5a8
@laanwj

laanwj commented Aug 25, 2018

Copy link
Copy Markdown
Member

ACK 03a2d68

@laanwj
laanwj merged commit 03a2d68 into bitcoin:master Aug 25, 2018
laanwj added a commit that referenced this pull request Aug 25, 2018
03a2d68 Tests: add usage note to check-rpc-mappings.py (Mason Simon)

Pull request description:

  This test would previously fail without a user-friendly warning message, if invoked with no arguments.

  Test plan:
  ```
  bitcoin @_@$ python3 test/lint/check-rpc-mappings.py
  Usage: test/lint/check-rpc-mappings.py ROOT-DIR
  bitcoin @_@$ echo $?
  1
  bitcoin @_@$ python3 test/lint/check-rpc-mappings.py .
  * Checking consistency between dispatch tables and vRPCConvertParams
  bitcoin @_@$ echo $?
  0
  ```

Tree-SHA512: 0b7a94125d18ba5dbf3c3281a4af60718d2e495bf7645d7c2a3e1a2a1d80cffcea1383c90247186728037f1f2b38de75d0f59ccf7f792d69edd33884f3698c07
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 17, 2020
… technique

b1b8863 docs: Specify preferred Python string formatting technique (Mason Simon)

Pull request description:

  @practicalswift this documents the nit you suggested in my previous PR
  bitcoin#13707 (comment)

Tree-SHA512: b75335976b30ccbce5c2e3a46e5b6218e797944e7025c17b4e56f294670397d731e1a9f4fe7e809d907136e2e62cd9c2b8404b875b4879a1e3f0b1970b94d5a8
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Jun 15, 2021
03a2d68 Tests: add usage note to check-rpc-mappings.py (Mason Simon)

Pull request description:

  This test would previously fail without a user-friendly warning message, if invoked with no arguments.

  Test plan:
  ```
  bitcoin @_@$ python3 test/lint/check-rpc-mappings.py
  Usage: test/lint/check-rpc-mappings.py ROOT-DIR
  bitcoin @_@$ echo $?
  1
  bitcoin @_@$ python3 test/lint/check-rpc-mappings.py .
  * Checking consistency between dispatch tables and vRPCConvertParams
  bitcoin @_@$ echo $?
  0
  ```

Tree-SHA512: 0b7a94125d18ba5dbf3c3281a4af60718d2e495bf7645d7c2a3e1a2a1d80cffcea1383c90247186728037f1f2b38de75d0f59ccf7f792d69edd33884f3698c07
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 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