terminal/src/host/ft_host
Mike Griese 1d08288406
Fix the feature tests with a retry (#8534)
A bunch of our feature tests don't work reliably in CI. They rely on
creating a new `OpenConsole.exe` window, then running the test _in that
console_. As a part of that test setup, the test runner used to wait a
second to attach to the newly created console. Then the test goes on
it's merry way, assuming the console is ready to go. However, in CI,
that might take more than a second. If it does, then the test would fail
pretty immediately, as soon as it tries to get at the buffer of the new
console.

This PR introduces a little retry loop to the test init. After attaching
to the new console, we'll try and get at the screen buffer. If that
fails, we'll wait a second and try again. We'll try 5 times total,
before bailing entirely. Hopefully, this should mitigate most of the
random CI failures we get in the feature tests.

Closes #8495
2020-12-09 11:02:23 -08:00
..
API_AliasTests.cpp inbox: reflect incoming changes up to uxp aa5182a2 (#1916) 2019-07-10 12:40:51 -07:00
API_AliasTestsHelpers.hpp Change NULL to nullptr since they are pointers (#4960) 2020-03-20 20:35:12 +00:00
API_BufferTests.cpp Change NULL to nullptr since they are pointers (#4960) 2020-03-20 20:35:12 +00:00
API_CursorTests.cpp Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
API_DimensionsTests.cpp Remove global namespaced min/max and replace it with STL min/max (#4173) 2020-01-10 13:27:05 +00:00
API_FileTests.cpp Change NULL to nullptr since they are pointers (#4960) 2020-03-20 20:35:12 +00:00
API_FillOutputTests.cpp Fix FillConsoleOutputCharacterA crash (#4309) 2020-02-10 14:09:08 -08:00
API_FontTests.cpp Replace ExpandEnvironmentStrings double calling with wil helper (#3198) 2019-10-15 14:51:33 -07:00
API_InputTests.cpp Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
API_ModeTests.cpp inbox: reflect incoming changes up to uxp aa5182a2 (#1916) 2019-07-10 12:40:51 -07:00
API_OutputTests.cpp Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
API_PolicyTests.cpp Reflect inbox changes in 8c63dff 2019-09-03 13:32:31 -07:00
API_RgbColorTests.cpp Improve the legacy color conversions (#6358) 2020-06-08 19:05:06 +00:00
API_TitleTests.cpp Remove global namespaced min/max and replace it with STL min/max (#4173) 2020-01-10 13:27:05 +00:00
CanaryTests.cpp Replace ExpandEnvironmentStrings double calling with wil helper (#3198) 2019-10-15 14:51:33 -07:00
chafa.txt Merged PR 3215853: Fix spacing/layout for block characters and many retroactively-recategorized emoji (and more!) 2019-05-02 15:29:10 -07:00
CJK_DbcsTests.cpp Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
Common.cpp Change NULL to nullptr since they are pointers (#4960) 2020-03-20 20:35:12 +00:00
Common.hpp Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
DefaultResource.rc inbox PR 3285709: Add chafa resource into the DLL built by Windows Razzle (#912) 2019-05-20 17:06:21 -07:00
Host.FeatureTests.vcxproj Add a context menu entry to "Open Windows Terminal here" (#6100) 2020-05-28 15:42:13 +00:00
Host.FeatureTests.vcxproj.filters Revert locking changes (#3488) 2019-11-08 13:44:52 -08:00
Host.Tests.Feature.rc Merged PR 3215853: Fix spacing/layout for block characters and many retroactively-recategorized emoji (and more!) 2019-05-02 15:29:10 -07:00
InitTests.cpp Fix the feature tests with a retry (#8534) 2020-12-09 11:02:23 -08:00
Message_KeyPressTests.cpp Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
OneCoreDelay.cpp add clang-format conf to the project, format the c++ code (#1141) 2019-06-11 13:27:09 -07:00
OneCoreDelay.hpp Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
precomp.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
precomp.h Remove global namespaced min/max and replace it with STL min/max (#4173) 2020-01-10 13:27:05 +00:00
product.pbxproj Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
resource.h Merged PR 3215853: Fix spacing/layout for block characters and many retroactively-recategorized emoji (and more!) 2019-05-02 15:29:10 -07:00
runtest.bat Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
sources Revert locking changes (#3488) 2019-11-08 13:44:52 -08:00
sources.dep Merged PR 4235821: [Git2Git] Reflect some sources.dep changes from OS 2020-01-31 21:27:33 +00:00
testmd.definition inbox: reflect incoming changes up to uxp aa5182a2 (#1916) 2019-07-10 12:40:51 -07:00