Module: tools Branch: master Commit: b874ada411669ccfc2aa6686bff44bd21030c307 URL: https://gitlab.winehq.org/winehq/tools/-/commit/b874ada411669ccfc2aa6686bff4...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Sep 15 17:39:13 2022 +0200
testbot/TestWTBS: Tweak messages to correctly describe errors as old/new.
---
testbot/tests/TestWTBS | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/testbot/tests/TestWTBS b/testbot/tests/TestWTBS index 15e7931e..ef04d5ce 100755 --- a/testbot/tests/TestWTBS +++ b/testbot/tests/TestWTBS @@ -752,14 +752,16 @@ sub CheckLogErrors($$$$) next; }
- fail("$LogKey has an unexpected new error in $GroupName: $LogGroup->{Errors}->[$LogIndex]"); + my $NewOld = $LogGroup->{IsNew}->[$LogIndex] ? "new" : "old"; + fail("$LogKey has an unexpected $NewOld error in $GroupName: $LogGroup->{Errors}->[$LogIndex]"); $LogIndex++; } # And for missing expected errors my $MissingCount = $Diff->Items(2); foreach (1..$MissingCount) { - fail("$LogKey is missing an error in $GroupName: $RefGroup->{Errors}->[$RefIndex]"); + my $NewOld = $RefGroup->{IsNew}->[$RefIndex] ? "a new" : "an old"; + fail("$LogKey is missing $NewOld error in $GroupName: $RefGroup->{Errors}->[$RefIndex]"); $RefIndex++; } }