Created
July 21, 2020 14:37
-
-
Save josephwoodward/914677ff78e9194391496ddf342eb358 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed class IgnoreOnAppVeyorLinuxFact : FactAttribute | |
{ | |
public IgnoreOnAppVeyorLinuxFact() { | |
if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && IsAppVeyor()) { | |
Skip = "Ignore on Linux when run via AppVeyor"; | |
} | |
} | |
private static bool IsAppVeyor() | |
=> Environment.GetEnvironmentVariable("APPVEYOR") != null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment