Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/Gauntlet/SelfTest/Gauntlet.SelfTest.CreateGif.cs
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

31 lines
721 B
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gauntlet.SelfTest
{
class CreateGif : BaseNode
{
public override void OnTick()
{
string ImagePath = Path.Combine(Environment.CurrentDirectory, @"Engine\Source\Programs\AutomationTool\NotForLicensees\Gauntlet\SelfTest\TestData\GifTest");
string OutPath = Path.Combine(Path.GetTempPath(), "Test.gif");
bool Success = Utils.Image.SaveImagesAsGif(ImagePath, OutPath);
if (Success)
{
File.Delete(OutPath);
}
MarkComplete(Success ? TestResult.Passed : TestResult.Failed);
}
}
}