HomePhabricator

Tests: add usage note to check-rpc-mappings.py

Description

Tests: add usage note to check-rpc-mappings.py

Summary:

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

Backport of core PR13707
https://github.com/bitcoin/bitcoin/pull/13707/files

Depends on D3772.

Also updated the copyright so the file is in sync with core.

Test Plan:

./test/lint/check-rpc-mappings.py

Should return:

Usage: ./test/lint/check-rpc-mappings.py ROOT-DIR

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3779

Details

Provenance
Mason Simon <masonsimon@gmail.com>Authored on Jul 19 2018, 00:47
FabienCommitted on Aug 5 2019, 07:10
FabienPushed on Aug 5 2019, 07:11
Reviewer
Restricted Project
Differential Revision
D3779: Tests: add usage note to check-rpc-mappings.py
Parents
rABCddc1eadb82aa: Add linter: Make sure we explicitly open all text files using UTF-8
Branches
Unknown
Tags
Unknown