mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 19:10:40 +01:00
Merge bitcoin/bitcoin#32573: ci: Avoid && dropping errors
fab97f583fci: Avoid && dropping errors (MarcoFalke) Pull request description: In bash, `&&` will ignore errexit. This can lead to silently ignoring errors. Compare the output of: ``` $ bash -c 'set -xe; false && false ; true; echo $?' + false + true + echo 0 0 ``` In theory this could be fixed by using a subshell: ``` $ bash -c 'set -xe; ( false && false ) ; true; echo $?' + false ``` However, it is easier to just remove the `&&`. This was introduced in commitfaa807bdf8ACKs for top commit: janb84: Code review ACKfab97f583fhebasto: ACKfab97f583f. laanwj: ACKfab97f583fTree-SHA512: 9d034829e03ef3aefdaad82c3cab59bf3fe18529762271c1ad3c838357e337e94bd403b77e30c0cf69715254b65addff6d12f2fb497d7a0e2cdcbcbf78858d47
This commit is contained in:
4
.github/ci-test-each-commit-exec.sh
vendored
4
.github/ci-test-each-commit-exec.sh
vendored
@@ -14,6 +14,8 @@ echo "Running test-one-commit on $( git log -1 )"
|
||||
# Use clang++, because it is a bit faster and uses less memory than g++
|
||||
CC=clang CXX=clang++ cmake -B build -DWERROR=ON -DWITH_ZMQ=ON -DBUILD_GUI=ON -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWITH_USDT=ON -DCMAKE_CXX_FLAGS='-Wno-error=unused-member-function'
|
||||
|
||||
cmake --build build -j "$( nproc )" && ctest --output-on-failure --stop-on-failure --test-dir build -j "$( nproc )"
|
||||
cmake --build build -j "$( nproc )"
|
||||
|
||||
ctest --output-on-failure --stop-on-failure --test-dir build -j "$( nproc )"
|
||||
|
||||
./build/test/functional/test_runner.py -j $(( $(nproc) * 2 )) --combinedlogslen=99999999
|
||||
|
||||
Reference in New Issue
Block a user