diff options
author | James O'Beirne <james.obeirne@pm.me> | 2021-06-16 12:09:29 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2023-09-30 06:41:23 -0400 |
commit | 7ee46a755f1d57ce9d51975d3b54dc9ac3d08d52 (patch) | |
tree | ab231e49a1b37c0461cf1dd671deec8f1690a608 /test/lint | |
parent | 42cae39356fd20d521aaf99aff1ed85856f3c9f3 (diff) | |
download | bitcoin-7ee46a755f1d57ce9d51975d3b54dc9ac3d08d52.tar.xz |
contrib: add script to demo/test assumeutxo
Add the script to the shellcheck exception list since the
quoted variables rule needs to be violated in order to get
bitcoind to pick up on $CHAIN_HACK_FLAGS.
Diffstat (limited to 'test/lint')
-rwxr-xr-x | test/lint/lint-shell.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/lint/lint-shell.py b/test/lint/lint-shell.py index 1646bf0d3e..db84ca3d39 100755 --- a/test/lint/lint-shell.py +++ b/test/lint/lint-shell.py @@ -67,9 +67,13 @@ def main(): '*.sh', ] files = get_files(files_cmd) - # remove everything that doesn't match this regex reg = re.compile(r'src/[leveldb,secp256k1,minisketch]') - files[:] = [file for file in files if not reg.match(file)] + + def should_exclude(fname: str) -> bool: + return bool(reg.match(fname)) or 'test_utxo_snapshots.sh' in fname + + # remove everything that doesn't match this regex + files[:] = [file for file in files if not should_exclude(file)] # build the `shellcheck` command shellcheck_cmd = [ |