mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
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:
parent
6e7e4678f1
commit
c36c1ba8b2
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue