Skip to content

Commit 86b337d

Browse files
committed
fixing test by adding new regular expression in normalizer
1 parent a768aec commit 86b337d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Microsoft.ML.TestFramework/BaseTestBaseline.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ protected void DoNotEverUseInvertPass()
233233
private static readonly Regex _matchTime = new Regex(@"[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?", RegexOptions.Compiled);
234234
private static readonly Regex _matchShortTime = new Regex(@"\([0-9]{2}:[0-9]{2}(\.[0-9]+)?\)", RegexOptions.Compiled);
235235
private static readonly Regex _matchMemory = new Regex(@"memory usage\(MB\): [0-9]+", RegexOptions.Compiled);
236+
private static readonly Regex _matchReservedMemory = new Regex(@": [0-9]+ bytes", RegexOptions.Compiled);
236237
private static readonly Regex _matchElapsed = new Regex(@"Time elapsed\(s\): [0-9.]+", RegexOptions.Compiled);
237238
private static readonly Regex _matchTimes = new Regex(@"Instances caching time\(s\): [0-9\.]+", RegexOptions.Compiled);
238239
private static readonly Regex _matchUpdatesPerSec = new Regex(@", ([0-9\.]+|Infinity)M WeightUpdates/sec", RegexOptions.Compiled);
@@ -281,6 +282,7 @@ protected void Normalize(string path)
281282
line = _matchShortTime.Replace(line, "(%Time%)");
282283
line = _matchElapsed.Replace(line, "Time elapsed(s): %Number%");
283284
line = _matchMemory.Replace(line, "memory usage(MB): %Number%");
285+
line = _matchReservedMemory.Replace(line, ": %Number% bytes");
284286
line = _matchTimes.Replace(line, "Instances caching time(s): %Number%");
285287
line = _matchUpdatesPerSec.Replace(line, ", %Number%M WeightUpdates/sec");
286288
line = _matchParameterT.Replace(line, "=PARAM:/t:%Number%");

0 commit comments

Comments
 (0)