Exit with sitespeed.io exit status when you run with WebPageReplay #3016 (#3017)

This commit is contained in:
Peter Hedenskog 2020-05-29 06:03:30 +02:00 committed by GitHub
parent 7d9c755176
commit 9103fa7920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -96,11 +96,13 @@ function runWebPageReplay() {
execNode --max-old-space-size=$MAX_OLD_SPACE_SIZE $SITESPEEDIO --browsertime.firefox.preference security.OCSP.enabled:0 --browsertime.firefox.preference network.dns.forceResolve:127.0.0.1 --browsertime.chrome.args host-resolver-rules="MAP *:$HTTP_PORT 127.0.0.1:$WPR_HTTP_PORT,MAP *:$HTTPS_PORT 127.0.0.1:$WPR_HTTPS_PORT,EXCLUDE localhost" --browsertime.connectivity.engine throttle --browsertime.connectivity.throttle.localhost --replay --browsertime.connectivity.profile custom --browsertime.connectivity.rtt $LATENCY "$@" &
PID=$!
trap shutdown SIGTERM SIGINT
wait $PID
EXIT_STATUS=$?
kill -s SIGTERM $replay_pid
exit $EXIT_STATUS
else
echo "Replay server didn't start correctly" >&2