Make TestPlatform API call not hang and return error code instead
Description
We observed that the call to RunTests was hanging for ever. This was likely a bug in TP that subsequently got fixed but it would be nice to no hang and return error code so that the caller can continue.
@KevinH-MS @ManishJayaswal an user may run tests that lasts for days (stress/endurance tests for instance). At the test platform layer there is no timeout enforcement, instead each test framework/adapter provides it's own construct for a timeout.
Test platform does listen to channel breaks or runner/host process termination, it does not hang in such cases.
An example is IVSTestConsoleWrapper.RunTests. It appears that if it is called with a .runsettings file that does not conform to the expected schema (extra elements, etc), then the call dies silently and we never get any sort of callback.
Triage: investigate.
Fixed by commit: 74f65573d528c7c2c894ee74a9e6ebeb0e49dc9b