r271938 added a flatpak_env.json file to forward some variables to webkit-bwrap after flatpak 1.10 changes.
This is working fine most of the time, but if flatpak-spawn is used to invoke a command from the host into the flatpak again (e.g. calling coredumpctl when a layout test fails), the new webkit-flatpak invocation may overwrite the file and delete it when exiting.
This could cause the finally block in the first flatpak process to fail with:
Traceback (most recent call last):
File "./Tools/Scripts/run-webkit-tests", line 42, in <module>
File "./Tools/flatpak/flatpakutils.py", line 1124, in run_in_sandbox_if_available
File "./Tools/flatpak/flatpakutils.py", line 877, in run_in_sandbox
OSError: [Errno 2] No such file or directory: '/home/lauro/dev/WebKit/WebKitBuild/flatpak-env.json'
Created attachment 418603 [details]
Committed r272018: <https://trac.webkit.org/changeset/272018>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 418603 [details].