What is the proper way to run "RunUAT.bat BuildCookRun -RunAutomationTest" ?

gishin2
Mon, 28 Aug 2023 09:19:16 +0000
Programming & Scripting

I’m trying to do automation test using UAT.

When I used this snippet, it will run correctly when using UnrealEditor-Cmd.exe,

"F:\UE_5.2\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" F:/GitLab-Runner/builds/rT-3XvJF6/0/gishin2/cisystem/CIsystem.uproject -unattended -nullrhi -nosound -execcmds="automation runtests DummyGroup.DummyTest.Test;quit"^ -TestExit="Automation Test Queue Empty"

However, if I run this snippet using RunUAT (kinda wraaper),

"F:\UE_5.2\Engine\Build\BatchFiles\RunUAT.bat" -nop4 BuildCookRun -clientconfig=Test -Platform=Win64  -project="F:\GitLab-Runner\builds\rT-3XvJF6\0\username\projectname\CIsystem.uproject" -unattended -nullrhi -nosound -run -RunAutomationTest="DummyGroup.DummyTest.Test"

the test case is successfully passed, but the client that runs a unit test is exited before automation tool asked. It then returns “BUILD FAILED”.

Plz help…

the below figure is the output of the command.

4 posts - 3 participants