Files
UnrealEngine/Engine/Source/Programs/AutomationTool/Gauntlet/Unreal/Automation/UE.UnversionedCookByTheBook.cs
2025-05-18 13:04:45 +08:00

30 lines
646 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.Linq;
using Gauntlet;
namespace UE
{
public class UnversionedCookByTheBook : CookByTheBook
{
private const string UnversionedPattern = "IsUnversioned=true";
public UnversionedCookByTheBook(UnrealTestContext InContext) : base(InContext)
{
BaseEditorCommandLine += " -cookcultures=en -unversioned";
}
protected override void InitTest()
{
base.InitTest();
Checker.AddValidation("Unversioned cook enabled", IsUnversionedCook);
}
private bool IsUnversionedCook()
{
return EditorLogParser.GetLogLinesContaining(UnversionedPattern).Any();
}
}
}