mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 11:32:46 +01:00
partial bitcoin#25288: Reliably don't start itself (lint-all.py runs all tests twice)
excluded: - f26a496dfd0a7ce3833a10075027d7d5b0345e32 (change in glob pattern) We still have shell scripts that end in `.sh`, so we can't restrict the glob to only cover files that end in `.py`.
This commit is contained in:
parent
bda1e03b24
commit
2fa480a878
@ -25,7 +25,7 @@ if [ "$CHECK_DOC" = 1 ]; then
|
|||||||
# TODO: Check docs (re-enable after all Bitcoin PRs have been merged and docs fully fixed)
|
# TODO: Check docs (re-enable after all Bitcoin PRs have been merged and docs fully fixed)
|
||||||
#test/lint/check-doc.py
|
#test/lint/check-doc.py
|
||||||
# Run all linters
|
# Run all linters
|
||||||
test/lint/lint-all.py
|
test/lint/all-lint.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ccache --zero-stats --max-size=$CCACHE_SIZE
|
ccache --zero-stats --max-size=$CCACHE_SIZE
|
||||||
|
@ -21,7 +21,7 @@ test/lint/git-subtree-check.sh src/minisketch
|
|||||||
test/lint/git-subtree-check.sh src/univalue
|
test/lint/git-subtree-check.sh src/univalue
|
||||||
test/lint/git-subtree-check.sh src/leveldb
|
test/lint/git-subtree-check.sh src/leveldb
|
||||||
test/lint/check-doc.py
|
test/lint/check-doc.py
|
||||||
test/lint/lint-all.py
|
test/lint/all-lint.py
|
||||||
|
|
||||||
if [ "$CIRRUS_REPO_FULL_NAME" = "dashpay/dash" ] && [ -n "$CIRRUS_CRON" ]; then
|
if [ "$CIRRUS_REPO_FULL_NAME" = "dashpay/dash" ] && [ -n "$CIRRUS_CRON" ]; then
|
||||||
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
|
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
|
||||||
|
@ -332,7 +332,7 @@ test/lint/lint-files.py
|
|||||||
You can run all the shell-based lint tests by running:
|
You can run all the shell-based lint tests by running:
|
||||||
|
|
||||||
```
|
```
|
||||||
test/lint/lint-all.py
|
test/lint/all-lint.py
|
||||||
```
|
```
|
||||||
|
|
||||||
# Writing functional tests
|
# Writing functional tests
|
||||||
|
@ -39,6 +39,6 @@ To do so, add the upstream repository as remote:
|
|||||||
git remote add --fetch secp256k1 https://github.com/bitcoin-core/secp256k1.git
|
git remote add --fetch secp256k1 https://github.com/bitcoin-core/secp256k1.git
|
||||||
```
|
```
|
||||||
|
|
||||||
lint-all.py
|
all-lint.py
|
||||||
===========
|
===========
|
||||||
Calls other scripts with the `lint-` prefix.
|
Calls other scripts with the `lint-` prefix.
|
||||||
|
@ -15,7 +15,7 @@ from subprocess import run
|
|||||||
|
|
||||||
exit_code = 0
|
exit_code = 0
|
||||||
mod_path = Path(__file__).parent
|
mod_path = Path(__file__).parent
|
||||||
lints = [x for x in glob(f"{mod_path}/lint-*") if x != __file__]
|
lints = glob(f"{mod_path}/lint-*")
|
||||||
if which("parallel") and which("column"):
|
if which("parallel") and which("column"):
|
||||||
logfile = "parallel_out.log"
|
logfile = "parallel_out.log"
|
||||||
command = ["parallel", "--jobs", "100%", "--will-cite", "--joblog", logfile, ":::"] + lints
|
command = ["parallel", "--jobs", "100%", "--will-cite", "--joblog", logfile, ":::"] + lints
|
Loading…
Reference in New Issue
Block a user