File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using Photon . Framework . Agent ;
2+ using Photon . Framework . Process ;
23using Photon . Framework . Tasks ;
34using Photon . MSBuild ;
45using System . Threading ;
@@ -39,9 +40,14 @@ private async Task BuildSolution(CancellationToken token)
3940
4041 private async Task UnitTest ( CancellationToken token )
4142 {
42- var nunit_exe = Context . AgentVariables [ "global" ] [ "nunit_exe" ] ;
43+ var info = new ProcessRunInfo {
44+ Filename = Context . AgentVariables [ "global" ] [ "nunit_exe" ] ,
45+ Arguments = "\" Jenkins.NET.Tests\\ bin\\ Release\\ Jenkins.NET.Tests.dll\" --where=\" cat == 'unit'\" " ,
46+ WorkingDirectory = Context . ContentDirectory ,
47+ } ;
4348
44- await Context . Process . RunAsync ( $ "\" { nunit_exe } \" \" Jenkins.NET.Tests\\ bin\\ Release\\ Jenkins.NET.Tests.dll\" --where=\" cat == 'unit'\" ", token ) ;
49+ var runner = new ProcessRunner ( Context ) ;
50+ await runner . RunAsync ( info , token ) ;
4551 }
4652 }
4753}
You can’t perform that action at this time.
0 commit comments