mirror of
https://github.com/audacity/wxWidgets.git
synced 2025-12-10 19:37:18 -06:00
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();
|
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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user