testbot/scripts: Tweak CheckWineTestBot.pl so it returns 1 if it failed to restart WineTestBot.
Francois Gouget
fgouget at codeweavers.com
Fri Oct 5 04:16:13 CDT 2012
---
testbot/scripts/CheckWineTestBot.pl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testbot/scripts/CheckWineTestBot.pl b/testbot/scripts/CheckWineTestBot.pl
index 2793a17..f6f0666 100755
--- a/testbot/scripts/CheckWineTestBot.pl
+++ b/testbot/scripts/CheckWineTestBot.pl
@@ -34,6 +34,7 @@ use WineTestBot::Engine::Notify;
$ENV{PATH} = "/sbin:/usr/sbin:/usr/bin:/bin";
delete $ENV{ENV};
+my $rc = 0;
if (! PingEngine())
{
system "service winetestbot restart > /dev/null";
@@ -53,6 +54,8 @@ EOF
else
{
print SENDMAIL "Unable to restart the engine\n";
+ $rc = 1;
}
close(SENDMAIL);
}
+exit($rc);
--
1.7.10.4
More information about the wine-patches
mailing list