From 2f75ebf5c1eddfdebd356d12ce6f4049fa2414f8 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Sun, 15 Mar 2020 01:02:30 +0500 Subject: [PATCH] fix check --- .../LogParserResultFormatter.WeirdSettingsSection.cs | 2 +- azure-pipelines.yml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.WeirdSettingsSection.cs b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.WeirdSettingsSection.cs index 742dfc7e..3857c0ab 100644 --- a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.WeirdSettingsSection.cs +++ b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.WeirdSettingsSection.cs @@ -575,7 +575,7 @@ namespace CompatBot.Utils.ResultFormatters { var frameLimit = items["frame_limit"]; var vsync = items["vsync"] == EnabledMark; - if (ppuPatches.Count == 1) + if (ppuPatches.Any() && ppuPatches.Values.Max() > 1) { if (frameLimit == "Off") { diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9ac5ca43..46c0bd36 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,3 +1,7 @@ +trigger: +- master +pr: +- master jobs: - job: BuildAndTest displayName: 'Run tests' @@ -86,5 +90,4 @@ jobs: repository: $(DockerRegistry) command: 'buildAndPush' Dockerfile: 'Dockerfile' - tags: test-latest - + tags: test-latest \ No newline at end of file