Module: tools
Branch: master
Commit: 8b8eced1fa117ba3f88d4fbdc1dc8d61d36d5fb2
URL: https://source.winehq.org/git/tools.git/?a=commit;h=8b8eced1fa117ba3f88d4fb…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jun 13 11:47:05 2018 +0200
testbot: Fix UpdateStatus() to handle empty jobs and steps.
We should not have empty jobs and steps but if we do make sure they are
marked 'completed'.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/lib/WineTestBot/Jobs.pm | 1 +
testbot/lib/WineTestBot/Steps.pm | 1 +
2 files changed, 2 insertions(+)
diff --git a/testbot/lib/WineTestBot/Jobs.pm b/testbot/lib/WineTestBot/Jobs.pm
index a13b346..6951b98 100644
--- a/testbot/lib/WineTestBot/Jobs.pm
+++ b/testbot/lib/WineTestBot/Jobs.pm
@@ -229,6 +229,7 @@ sub UpdateStatus($)
my $StepStatus = $Step->UpdateStatus($Skip);
$Has{$StepStatus} = 1;
}
+ $Has{completed} = 1 if (!%Has); # This job has no step!
# Inherit the steps most significant status.
# Note that one or more tasks may have been requeued during the cleanup phase
diff --git a/testbot/lib/WineTestBot/Steps.pm b/testbot/lib/WineTestBot/Steps.pm
index 8afe793..71e0447 100644
--- a/testbot/lib/WineTestBot/Steps.pm
+++ b/testbot/lib/WineTestBot/Steps.pm
@@ -200,6 +200,7 @@ sub UpdateStatus($$)
my %Has;
map { $Has{$_->UpdateStatus($Skip)} = 1 } (@{$self->Tasks->Clone()->GetItems()});
+ $Has{completed} = 1 if (!%Has); # This step has no task!
# Inherit the tasks most significant status.
# Note that one or more tasks may have been requeued during the cleanup phase
Module: tools
Branch: master
Commit: 061d2b1f3d9ae2fee1b48adc76616d7fed329e5c
URL: https://source.winehq.org/git/tools.git/?a=commit;h=061d2b1f3d9ae2fee1b48ad…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jun 13 11:46:08 2018 +0200
testbot: Document the dependency on Procmail.
It may be possible to do without it but it is used in the installation
instructions.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/doc/INSTALL.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/doc/INSTALL.txt b/testbot/doc/INSTALL.txt
index cb7c31b..bae1e82 100644
--- a/testbot/doc/INSTALL.txt
+++ b/testbot/doc/INSTALL.txt
@@ -5,7 +5,7 @@ Dependencies:
- Apache2 with mod_perl
- MySQL
- Perl DBD and DBI::mysql modules
-- Sendmail
+- Sendmail and Procmail
- Sys::Virt (libsys-virt-perl, see http://libvirt.org/)
- Image::Magick (perlmagick)
- Optional: IO::Socket::IP (for IPv6, libio-socket-ip-perl)