testbot: Restrict the use of WineTestBot::Log in the Jobs module.
Francois Gouget
fgouget at codeweavers.com
Thu Oct 3 05:18:19 CDT 2013
---
testbot/lib/WineTestBot/Jobs.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testbot/lib/WineTestBot/Jobs.pm b/testbot/lib/WineTestBot/Jobs.pm
index 48e74f9..86bb0c3 100644
--- a/testbot/lib/WineTestBot/Jobs.pm
+++ b/testbot/lib/WineTestBot/Jobs.pm
@@ -54,7 +54,6 @@ use WineTestBot::Config;
use WineTestBot::Branches;
use WineTestBot::Engine::Notify;
use WineTestBot::WineTestBotObjects;
-use WineTestBot::Log;
use vars qw(@ISA @EXPORT);
@@ -206,7 +205,8 @@ sub Cancel
}
elsif (defined $Task->ChildPid)
{
- LogMsg "Canceling the ". join("/", $self->Id, $Step->No, $Task->No) . " task\n";
+ require WineTestBot::Log;
+ WineTestBot::Log::LogMsg("Canceling the " . join("/", $self->Id, $Step->No, $Task->No) . " task\n");
kill("TERM", $Task->ChildPid);
$Task->Status("canceled");
$Task->ChildPid(undef);
--
1.8.4.rc3
More information about the wine-patches
mailing list