LPS-51256

Hey Manu,

after a day long heroic fight with the tests:) I found the smallest piece of code I can identify that causes the missing manifest.xml issue. This is the LayoutLocalServiceUtil.addLayout(...) call in the LayoutTestUtil. 

To be honest, I don't know how could this call affects the existence of the physical file on the disc, but based on my results it seems not just the File object in JAVA is invalid, but the whole physical file gets deleted on the disk. Unfortunately I haven't found any solution to find that point where the file gets deleted, a listener or something else I could write to catch with the debugger the moment when this occasional issue happens.

It seems this change resolves the issue, but please let me know if you have any idea how could this issue happen as a result of the service call.

cc'ing @matethurzo

thanks,
Daniel