To avoid duplicated tests registration.
Start discovery by sending an event. First for global tests and the for
local inside global event handler with timeout. Check for duplicates.
Check coroutine status after the end of a test to catch failures not
caused by asserts.
Support bypass in the menu.newGame to start morrowind tests from a menu
script skipping intro video.
Add --list_tests flag to print all found tests.
This allows writing tests for menu scripts.
Keep global script as entry point to morrowind tests.
Fix menu.newGame and menu.loadGame to hide main menu.
We just need to make sure player moved, for how long is not important.
To avoid failures like: https://gitlab.com/OpenMW/openmw/-/jobs/5815281969:
TEST playerForwardRunning FAILED [string "test.lua"]:80: [string "player.lua"]:44: Normalized forward runned distance: 0.782032 ~= 1.000000
This is not used anyway. There are features like smooth movement which remove
all redundant points.
Use single findStraightPath call instead of multiple.