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:
parent
a1651959a1
commit
1f6e15bef7
1 changed files with 18 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue