Skip to content

Commit c23b533

Browse files
fredericDelaportehazzik
authored andcommitted
NH-4028 - support another kind of inconclusive result. (#655)
1 parent bb0f07f commit c23b533

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

teamcity.build

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,10 @@
289289
public enum ResultStatus
290290
{
291291
None,
292+
Failure,
292293
Ignored,
293-
Success,
294-
Failure
294+
Inconclusive,
295+
Success
295296
}
296297
297298
public class Result
@@ -305,7 +306,7 @@
305306
{
306307
get
307308
{
308-
return Executed && !Success && Status == ResultStatus.Success;
309+
return Executed && !Success && (Status == ResultStatus.Success || Status == ResultStatus.Inconclusive);
309310
}
310311
}
311312
@@ -376,7 +377,7 @@
376377
// Else ignored
377378
.ThenBy(r => r.Executed)
378379
// Else inconclusive
379-
.ThenBy(r => r.Status == ResultStatus.Success ? 0 : 1)
380+
.ThenBy(r => r.Inconclusive ? 0 : 1)
380381
.First());
381382
var after = Result.ParseFile(currentResult);
382383

0 commit comments

Comments
 (0)