Skip to content

Commit

Permalink
Write tester result to file
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Jan 14, 2024
1 parent d9c40ad commit 177860b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PremonitionPreTester/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Mono.Cecil;
using Premonition.Core;
using Premonition.Core.Utility;
using PremonitionTester;
using PremonitionTesters;
// using TesterDLL;

Expand Down Expand Up @@ -32,13 +33,15 @@

tester.StartInfo.UseShellExecute = false;
tester.StartInfo.RedirectStandardOutput = true;
tester.StartInfo.RedirectStandardError = true;
tester.Start();
while (!tester.HasExited)
{
}

Console.WriteLine(tester.StandardOutput.ReadToEnd());
return tester.ExitCode;
File.WriteAllText("result", tester.ExitCode == 0 ? "SUCCESS" : "FAILURE");
return 0;
}


Expand Down

0 comments on commit 177860b

Please sign in to comment.