Fix test dlls being loaded as actual rulesets (and failing)

This commit is contained in:
Dean Herbert 2019-02-19 12:12:21 +09:00
parent a5a1d9d1cc
commit 133c002d02
1 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,8 @@ static RulesetStore()
{
AppDomain.CurrentDomain.AssemblyResolve += currentDomain_AssemblyResolve;
foreach (string file in Directory.GetFiles(Environment.CurrentDirectory, $"{ruleset_library_prefix}.*.dll"))
foreach (string file in Directory.GetFiles(Environment.CurrentDirectory, $"{ruleset_library_prefix}.*.dll")
.Where(f => !Path.GetFileName(f).Contains("Tests")))
loadRulesetFromFile(file);
}
@ -124,7 +125,7 @@ private static void loadRulesetFromFile(string file)
}
catch (Exception e)
{
Logger.Error(e, "Failed to load ruleset");
Logger.Error(e, $"Failed to load ruleset {filename}");
}
}
}