Skip to content

Commit

Permalink
Support variable $(FRAMEWORK) in test run conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
BCSharp committed Jan 2, 2025
1 parent 3293f7e commit 17f04fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Src/IronPythonTest/Cases/CaseGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ private bool EvaluateExpression(string expression) {
string filter = expression;
var replacements = new OrderedDictionary() {
// variables
{ "$(FRAMEWORK)", IronPython.Runtime.ClrModule.TargetFramework },
{ "$(IS_NETCOREAPP)", IronPython.Runtime.ClrModule.IsNetCoreApp.ToString() },
{ "$(IS_NETSTANDARD)", IronPython.Runtime.ClrModule.TargetFramework.StartsWith(".NETStandard", StringComparison.Ordinal).ToString() },
{ "$(IS_MONO)", IronPython.Runtime.ClrModule.IsMono.ToString() },
Expand Down

0 comments on commit 17f04fd

Please sign in to comment.