Skip to content

Commit

Permalink
run-tests: Increase default timeout on macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Esme Povirk committed Jul 29, 2024
1 parent 48cdfdb commit 0ff094d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/run-tests/run-tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class RunTests
List<string> skip_categories = new List<string> ();

int timeout = 300;
bool timeout_specified;

// actual results
List<string> passing_tests = new List<string> ();
Expand Down Expand Up @@ -657,7 +658,10 @@ int process_arguments(string[] arguments)
else if (argument.StartsWith("-fail-list:"))
read_stringlist(argument.Substring(11), fail_list);
else if (argument.StartsWith("-timeout:"))
{
timeout = int.Parse(argument.Substring(9));
timeout_specified = true;
}
else if (argument == "-nodefaults")
nodefaults = true;
else if (!argument.StartsWith("-"))
Expand Down Expand Up @@ -728,6 +732,8 @@ int main(string[] arguments)
read_stringlist(Path.Combine(BasePath, "wine-macos-passing.txt"), pass_list);
read_stringlist(Path.Combine(BasePath, "wine-macos-failing.txt"), fail_list);
read_testlist(Path.Combine(BasePath, "skip-macos.txt"), skip_list);
if (!timeout_specified)
timeout = 600;
break;
default:
Console.WriteLine($"unknown host OS: {sysname}");
Expand Down

0 comments on commit 0ff094d

Please sign in to comment.