mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-29 18:05:58 +02:00
lint: pass args from lint.py to cargo run in container
This commit is contained in:
@@ -16,7 +16,7 @@ if [ -n "${LINT_CI_IS_PR}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUST_BACKTRACE=1 cargo run --manifest-path "./test/lint/test_runner/Cargo.toml"
|
RUST_BACKTRACE=1 cargo run --manifest-path "./test/lint/test_runner/Cargo.toml" -- "$@"
|
||||||
|
|
||||||
if [ "${LINT_CI_SANITY_CHECK_COMMIT_SIG}" = "1" ] ; then
|
if [ "${LINT_CI_SANITY_CHECK_COMMIT_SIG}" = "1" ] ; then
|
||||||
# Sanity check only the last few commits to get notified of missing sigs,
|
# Sanity check only the last few commits to get notified of missing sigs,
|
||||||
|
|||||||
@@ -12,8 +12,4 @@ git config --global --add safe.directory /bitcoin
|
|||||||
|
|
||||||
export PATH="/python_build/bin:${PATH}"
|
export PATH="/python_build/bin:${PATH}"
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
./ci/lint/06_script.sh "$@"
|
||||||
bash -ic "./ci/lint/06_script.sh"
|
|
||||||
else
|
|
||||||
exec "$@"
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -10,6 +10,13 @@ the _lint.py_ helper script which runs checks inside the CI container:
|
|||||||
./ci/lint.py
|
./ci/lint.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Extra arguments are passed to `cargo run -- ...` in the container so you can do:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./ci/lint.py --help
|
||||||
|
./ci/lint.py --lint=py_lint
|
||||||
|
```
|
||||||
|
|
||||||
test runner
|
test runner
|
||||||
===========
|
===========
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user