2025-02-24 14:26:31 +00:00
|
|
|
export DATABRICKS_CLI_TELEMETRY_PID_FILE=./telemetry.pid
|
|
|
|
export DATABRICKS_CLI_TELEMETRY_UPLOAD_LOGS_FILE=./out.upload_process.txt
|
|
|
|
|
2025-02-24 14:56:05 +00:00
|
|
|
# Configure a timeout of 0 seconds. This test validates that the timeout is respected
|
|
|
|
# and the telemetry process does not try to upload logs.
|
2025-02-24 14:26:31 +00:00
|
|
|
export DATABRICKS_CLI_TELEMETRY_UPLOAD_TIMEOUT="0s"
|
|
|
|
|
|
|
|
trace $CLI selftest send-telemetry
|
|
|
|
|
|
|
|
echo "waiting for telemetry process to finish"
|
|
|
|
|
|
|
|
# Wait for the child telemetry process to finish
|
2025-02-28 11:49:29 +00:00
|
|
|
wait_pid.py $(cat ./telemetry.pid)
|
2025-02-24 14:26:31 +00:00
|
|
|
|
|
|
|
# cleanup the pid file
|
|
|
|
rm -f ./telemetry.pid
|