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:
@@ -521,6 +521,10 @@ extern bool IsAutomaticTest()
|
|||||||
username.MakeLower();
|
username.MakeLower();
|
||||||
s_isAutomatic = username == "buildbot" ||
|
s_isAutomatic = username == "buildbot" ||
|
||||||
username.Matches("sandbox*");
|
username.Matches("sandbox*");
|
||||||
|
|
||||||
|
// Also recognize Travis CI environment.
|
||||||
|
if ( !s_isAutomatic )
|
||||||
|
s_isAutomatic = wxGetEnv("TRAVIS", NULL)
|
||||||
}
|
}
|
||||||
|
|
||||||
return s_isAutomatic == 1;
|
return s_isAutomatic == 1;
|
||||||
|
Reference in New Issue
Block a user