Recognize Travis CI environment in the tests

Avoid running time-sensitive tests such as StopWatchTestCase under Travis as
they can result in spurious failures if the machine running the test is under
too much load.
This commit is contained in:
Vadim Zeitlin 2017-03-11 03:35:11 +01:00
parent 13da4f5253
commit 7a2df9534c

View File

@ -521,6 +521,10 @@ extern bool IsAutomaticTest()
username.MakeLower();
s_isAutomatic = username == "buildbot" ||
username.Matches("sandbox*");
// Also recognize Travis CI environment.
if ( !s_isAutomatic )
s_isAutomatic = wxGetEnv("TRAVIS", NULL)
}
return s_isAutomatic == 1;