add more details to cypress pilot script w/ burnettk
This commit is contained in:
parent
7f0318ff5e
commit
d5708f38ca
|
@ -30,9 +30,15 @@ if [[ -z "${CYPRESS_SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK:-}" ]]; then
|
||||||
export CYPRESS_SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK=true
|
export CYPRESS_SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cypress_run_file="/var/tmp/cypress_run_$(date +%s)"
|
cypress_run_file="/var/tmp/cypress_run"
|
||||||
echo "Recording stats to ${cypress_run_file}"
|
echo "Recording stats to ${cypress_run_file}"
|
||||||
|
|
||||||
|
if [[ ! -f "$cypress_run_file" ]]; then
|
||||||
|
echo "success,duration,start_time,end_time,frontend_url" >"$cypress_run_file"
|
||||||
|
fi
|
||||||
|
|
||||||
|
frontend_url="${SPIFFWORKFLOW_FRONTEND_URL:localhost}"
|
||||||
|
|
||||||
for attempt in $(seq 1 "$ATTEMPTS" ); do
|
for attempt in $(seq 1 "$ATTEMPTS" ); do
|
||||||
echo "Running attempt: ${attempt}"
|
echo "Running attempt: ${attempt}"
|
||||||
|
|
||||||
|
@ -43,6 +49,6 @@ for attempt in $(seq 1 "$ATTEMPTS" ); do
|
||||||
fi
|
fi
|
||||||
end_time=$(date +%s)
|
end_time=$(date +%s)
|
||||||
|
|
||||||
echo "${success},$(( end_time - start_time ))" >>"$cypress_run_file"
|
echo "${success},$(( end_time - start_time )),$(date "-d@${start_time}"),$(date "-d@${end_time}"),${frontend_url}" >>"$cypress_run_file"
|
||||||
done
|
done
|
||||||
echo "Recorded stats to ${cypress_run_file}"
|
echo "Recorded stats to ${cypress_run_file}"
|
||||||
|
|
Loading…
Reference in New Issue