Module: tools Branch: master Commit: 37209e6b133474ebadc64cb80edb7e2218771083 URL: http://source.winehq.org/git/tools.git/?a=commit;h=37209e6b133474ebadc64cb80...
Author: Francois Gouget fgouget@codeweavers.com Date: Fri Oct 5 11:16:13 2012 +0200
testbot/scripts: Tweak CheckWineTestBot.pl so it returns 1 if it failed to restart WineTestBot.
---
testbot/scripts/CheckWineTestBot.pl | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
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);