Wait for the browser process in Windows test runs

zotero.exe is the Mozilla launcher process, which spawns the browser
process and exits, so the test runner checked for the success file and
cleaned up the profile while the app was still starting, and passing
runs were reported as failures that ended at arbitrary points.
This commit is contained in:
Dan Stillman 2026-08-19 15:23:35 -04:00
parent 6e7e4678f1
commit c36c1ba8b2

View file

@ -171,6 +171,13 @@ else
Z_ARGS="$Z_ARGS -jsconsole"
fi
# On Windows, zotero.exe is the Mozilla launcher process, which spawns the browser process
# and exits, so tell it to wait -- the success check and profile cleanup below otherwise
# run while the app is still starting
if [ ! -z $IS_CYGWIN ]; then
Z_ARGS="$Z_ARGS --wait-for-browser"
fi
# Clean up on exit
trap "{ rm -rf \"$TEMPDIR\"; }" EXIT