Show last 50 lines on test failure instead of last 10
This commit is contained in:
parent
865637e8d8
commit
26fe3990b9
4
Makefile
4
Makefile
|
@ -312,7 +312,7 @@ endif
|
||||||
for TEST_BINARY in $(XML_TEST_BINARIES); do \
|
for TEST_BINARY in $(XML_TEST_BINARIES); do \
|
||||||
PARAMS="--xml:build/$${TEST_BINARY}.xml --console"; \
|
PARAMS="--xml:build/$${TEST_BINARY}.xml --console"; \
|
||||||
echo -e "\nRunning $${TEST_BINARY} $${PARAMS}\n"; \
|
echo -e "\nRunning $${TEST_BINARY} $${PARAMS}\n"; \
|
||||||
build/$${TEST_BINARY} $${PARAMS} || { echo -e "\n$${TEST_BINARY} $${PARAMS} failed; Last 10 lines from the log:"; tail -n10 "$${TEST_BINARY}.log"; exit 1; }; \
|
build/$${TEST_BINARY} $${PARAMS} || { echo -e "\n$${TEST_BINARY} $${PARAMS} failed; Last 50 lines from the log:"; tail -n50 "$${TEST_BINARY}.log"; exit 1; }; \
|
||||||
done; \
|
done; \
|
||||||
rm -rf 0000-*.json t_slashprot_migration.* *.log block_sim_db
|
rm -rf 0000-*.json t_slashprot_migration.* *.log block_sim_db
|
||||||
for TEST_BINARY in $(TEST_BINARIES); do \
|
for TEST_BINARY in $(TEST_BINARIES); do \
|
||||||
|
@ -321,7 +321,7 @@ endif
|
||||||
elif [[ "$${TEST_BINARY}" == "block_sim" ]]; then PARAMS="--validators=8000 --slots=160"; \
|
elif [[ "$${TEST_BINARY}" == "block_sim" ]]; then PARAMS="--validators=8000 --slots=160"; \
|
||||||
fi; \
|
fi; \
|
||||||
echo -e "\nRunning $${TEST_BINARY} $${PARAMS}\n"; \
|
echo -e "\nRunning $${TEST_BINARY} $${PARAMS}\n"; \
|
||||||
build/$${TEST_BINARY} $${PARAMS} || { echo -e "\n$${TEST_BINARY} $${PARAMS} failed; Last 10 lines from the log:"; tail -n10 "$${TEST_BINARY}.log"; exit 1; }; \
|
build/$${TEST_BINARY} $${PARAMS} || { echo -e "\n$${TEST_BINARY} $${PARAMS} failed; Last 50 lines from the log:"; tail -n50 "$${TEST_BINARY}.log"; exit 1; }; \
|
||||||
done; \
|
done; \
|
||||||
rm -rf 0000-*.json t_slashprot_migration.* *.log block_sim_db
|
rm -rf 0000-*.json t_slashprot_migration.* *.log block_sim_db
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue