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:
parent
13da4f5253
commit
7a2df9534c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user