Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05: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();
}
}
}