Skip to content

Commit 9bdebb9

Browse files
committed
Fixes printing of disttest status
1 parent c690598 commit 9bdebb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/DistTestCore/DistTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,12 @@ public DistTestResult(bool success, string status, string result)
343343
public bool Success { get; }
344344
public string Status { get; }
345345
public string Result { get; }
346+
347+
public override string ToString()
348+
{
349+
if (Success) return $"Passed ({Status}) ({Result})";
350+
return $"Failed ({Status}) ({Result})";
351+
}
346352
}
347353

348354
public static class GlobalTestFailure

0 commit comments

Comments
 (0)