TestRunner for CI workflow
This commit is contained in:
parent
6cbe414c0e
commit
4b08a823a7
|
|
@ -17,5 +17,5 @@ begin
|
|||
end;
|
||||
|
||||
begin
|
||||
Assert(1=1);
|
||||
Assert(1=0);
|
||||
end
|
||||
Binary file not shown.
|
|
@ -245,7 +245,16 @@ begin
|
|||
p.StandardInput.WriteLine('GO');
|
||||
//p.StandardInput.AutoFlush := true;
|
||||
//var p := System.Diagnostics.Process.Start(psi);
|
||||
p.WaitForExit();
|
||||
if nogui then
|
||||
begin
|
||||
var success := p.WaitForExit(60000);
|
||||
if not success then
|
||||
begin
|
||||
raise new Exception('Running of ' + files[i] + ' failed.');
|
||||
end;
|
||||
end
|
||||
else
|
||||
p.WaitForExit();
|
||||
//while not p.HasExited do
|
||||
// Sleep(5);
|
||||
if p.ExitCode <> 0 then
|
||||
|
|
|
|||
Loading…
Reference in a new issue