File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ public class BuildContext : FrostingContext
99
1010 public bool IsUniversalBinary { get ; }
1111
12+ public bool ShouldSkipTest { get ; set ; }
13+
1214 public BuildContext ( ICakeContext context ) : base ( context )
1315 {
1416 ArtifactsDir = context . Argument ( "artifactsDir" , "artifacts" ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public sealed class TestLinuxTask : FrostingTask<BuildContext>
1717 "/lib64/ld-linux-"
1818 } ;
1919
20- public override bool ShouldRun ( BuildContext context ) => context . IsRunningOnLinux ( ) ;
20+ public override bool ShouldRun ( BuildContext context ) => context . IsRunningOnLinux ( ) && ! context . ShouldSkipTest ;
2121
2222 public override void Run ( BuildContext context )
2323 {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ namespace BuildScripts;
44[ TaskName ( "Test macOS" ) ]
55public sealed class TestMacOSTask : FrostingTask < BuildContext >
66{
7- public override bool ShouldRun ( BuildContext context ) => context . IsRunningOnMacOs ( ) ;
7+ public override bool ShouldRun ( BuildContext context ) => context . IsRunningOnMacOs ( ) && ! context . ShouldSkipTest ;
88
99 public override void Run ( BuildContext context )
1010 {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public sealed class TestWindowsTask : FrostingTask<BuildContext>
2424 "msvcrt.dll"
2525 } ;
2626
27- public override bool ShouldRun ( BuildContext context ) => context . IsRunningOnWindows ( ) ;
27+ public override bool ShouldRun ( BuildContext context ) => context . IsRunningOnWindows ( ) && ! context . ShouldSkipTest ;
2828
2929 public override void Run ( BuildContext context )
3030 {
You can’t perform that action at this time.
0 commit comments