1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Update TestManager.bf

actually use and resolve Name attribute
This commit is contained in:
Jannis 2024-08-14 09:03:47 +00:00 committed by GitHub
parent a1651959a1
commit 1f6e15bef7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -388,10 +388,25 @@ namespace IDE
testEntry.mLine = int32.Parse(cmdParts[3]).Get();
testEntry.mColumn = int32.Parse(cmdParts[4]).Get();
testEntry.mShouldFail = attribs.Contains("Sf");
testEntry.mProfile = attribs.Contains("Pr");
testEntry.mIgnore = attribs.Contains("Ig");
List<StringView> attributes = scope .(attribs.Split('\a'));
for(var i in attributes)
{
if(i.StartsWith('\v'))
{
if(i == "\vSf")
testEntry.mShouldFail = true;
else if(i == "\vPr")
testEntry.mProfile = true;
else if(i == "\vIg")
testEntry.mIgnore = true;
}
else if(i.StartsWith("Name"))
{
testEntry.mName.Clear();
scope String(i.Substring("Name".Length)).Escape(testEntry.mName);
}
}
testInstance.mTestEntries.Add(testEntry);
}
}