[xharness] Increase timeouts for a few tests, since they may run slower when run in parallel. (#2968)

This commit is contained in:
Rolf Bjarne Kvinge 2017-11-07 16:12:37 +01:00 коммит произвёл GitHub
Родитель 53bdb99ed7
Коммит 12d7cc87dd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -500,7 +500,7 @@ namespace xharness
Platform = TestPlatform.iOS,
TestName = "MSBuild tests",
Mode = "iOS",
Timeout = TimeSpan.FromMinutes (30),
Timeout = TimeSpan.FromMinutes (60),
Ignored = !IncludeiOSMSBuild,
};
Tasks.Add (nunitExecutioniOSMSBuild);
@ -626,6 +626,7 @@ namespace xharness
Target = "all -j" + Environment.ProcessorCount,
WorkingDirectory = Path.Combine (Harness.RootDirectory, "mmptest", "regression"),
Ignored = !IncludeMmpTest || !IncludeMac,
Timeout = TimeSpan.FromMinutes (15),
};
run_mmp.Environment.Add ("BUILD_REVISION", "jenkins"); // This will print "@MonkeyWrench: AddFile: <log path>" lines, which we can use to get the log filenames.
Tasks.Add (run_mmp);
@ -648,6 +649,7 @@ namespace xharness
Target = "wrench",
WorkingDirectory = Path.Combine (Harness.RootDirectory, "xtro-sharpie"),
Ignored = !IncludeXtro,
Timeout = TimeSpan.FromMinutes (15),
};
Tasks.Add (runXtroTests);
@ -2313,6 +2315,7 @@ function oninitialload ()
{
public string Target;
public string WorkingDirectory;
public TimeSpan Timeout = TimeSpan.FromMinutes (5);
protected override async Task ExecuteAsync ()
{
@ -2325,7 +2328,7 @@ function oninitialload ()
var log = Logs.CreateStream (LogDirectory, $"make-{Platform}-{Timestamp}.txt", "Build log");
LogProcessExecution (log, make, "Making {0} in {1}", Target, WorkingDirectory);
if (!Harness.DryRun) {
var timeout = TimeSpan.FromMinutes (5);
var timeout = Timeout;
var result = await make.RunAsync (log, true, timeout);
if (result.TimedOut) {
ExecutionResult = TestExecutingResult.TimedOut;