mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
add OUTPUT_FILE='foo.log' env variable support to test.sh script.
Side consequence of this is that `make test-smoke` can become interactive again.
This commit is contained in:
@@ -46,6 +46,11 @@ export ETCD_VERIFY=all
|
||||
source ./scripts/test_lib.sh
|
||||
source ./scripts/build.sh
|
||||
|
||||
if [ -n "${OUTPUT_FILE}" ]; then
|
||||
log_callout "Dumping output to: ${OUTPUT_FILE}"
|
||||
exec > >(tee -a "${OUTPUT_FILE}") 2>&1
|
||||
fi
|
||||
|
||||
PASSES=${PASSES:-"fmt bom dep build unit"}
|
||||
PKG=${PKG:-}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user