From 9bdebb963b4d15c41eb982b82eb99dd0ca783e5d Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 20 Aug 2024 15:31:45 +0200 Subject: [PATCH] Fixes printing of disttest status --- Tests/DistTestCore/DistTest.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/DistTestCore/DistTest.cs b/Tests/DistTestCore/DistTest.cs index 57983fbb..09330df6 100644 --- a/Tests/DistTestCore/DistTest.cs +++ b/Tests/DistTestCore/DistTest.cs @@ -343,6 +343,12 @@ namespace DistTestCore public bool Success { get; } public string Status { get; } public string Result { get; } + + public override string ToString() + { + if (Success) return $"Passed ({Status}) ({Result})"; + return $"Failed ({Status}) ({Result})"; + } } public static class GlobalTestFailure