Module: tools
Branch: master
Commit: e202221249991184a8bbf974bde85acaee33d56f
URL: https://source.winehq.org/git/tools.git/?a=commit;h=e202221249991184a8bbf97…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Mon Feb 1 12:58:55 2021 +0100
winetest/dissect: Don't issue multiple errors in check_unit().
Don't complain about misplaced lines after the first one has been
reported (or if the test has already been tagged as broken for some
other reason, e.g. missing start line).
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/dissect | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winetest/dissect b/winetest/dissect
index 27bcf17..12a939d 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -483,7 +483,7 @@ sub add_test_line($$)
sub check_unit($$)
{
my ($l_unit, $l_type) = @_;
- if (!$units{$l_unit})
+ if (!$units{$l_unit} and !$broken)
{
add_test_line("end", "Misplaced $l_type message\n");
$extra_failures++;
Module: tools
Branch: master
Commit: c9aa4dbf830563f13b53a1c7561b89569cc92412
URL: https://source.winehq.org/git/tools.git/?a=commit;h=c9aa4dbf830563f13b53a1c…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Mon Feb 1 12:58:32 2021 +0100
testbot/LogUtils: Always set IsWineTest in _CheckUnit().
_CheckUnit() is only called on Wine test lines.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/lib/WineTestBot/LogUtils.pm | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 15ec31a..2f30493 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -384,13 +384,11 @@ sub _CheckUnit($$$$)
{
my ($LogInfo, $Cur, $Unit, $Type) = @_;
- if ($Cur->{Units}->{$Unit} or $Cur->{Unit} eq "")
- {
- $LogInfo->{IsWineTest} = 1;
- }
- # To avoid issuing many duplicate errors,
- # only report the first misplaced message.
- elsif ($LogInfo->{IsWineTest} and !$Cur->{IsBroken})
+ # _CheckUnit() is only called for Wine test lines.
+ $LogInfo->{IsWineTest} = 1;
+
+ # Only report the first misplaced message to avoid duplicate errors.
+ if (!$Cur->{Units}->{$Unit} and $Cur->{Unit} ne "" and !$Cur->{IsBroken})
{
_AddExtra($LogInfo, "contains a misplaced $Type message for $Unit", $Cur);
$Cur->{IsBroken} = 1;
Module: tools
Branch: master
Commit: 6c4b3a308721c8c21806781de0ec4af03288fb7f
URL: https://source.winehq.org/git/tools.git/?a=commit;h=6c4b3a308721c8c21806781…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Mon Feb 1 12:02:45 2021 +0100
testbot/TestWTBS: Allow mission-specific directives, e.g. for test=module.
A different set of tests are run depending on whether a VM's mission
is test=test (the default) or test=module. Being unable to distinguish
these two cases prevents checking that the right set of test units is
being run in many cases.
So add support for the wine:build, wine:test, wine:module categories to
allow providing specific checks for the test=build/test/module cases
respectively.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/tests/TestWTBS | 184 +++++++++++++++++++++++++++++++++++--------------
1 file changed, 131 insertions(+), 53 deletions(-)
Diff: https://source.winehq.org/git/tools.git/?a=commitdiff;h=6c4b3a308721c8c2180…