Francois Gouget : testbot: Specify the service path instead of relying on $PATH.

Alexandre Julliard julliard at winehq.org
Tue Aug 27 15:26:08 CDT 2019


Module: tools
Branch: master
Commit: ccc707a6414c0462c0a0e538c858113f51916769
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=ccc707a6414c0462c0a0e538c858113f51916769

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Aug 27 01:50:35 2019 +0200

testbot: Specify the service path instead of relying on $PATH.

This allows CheckWineTestBot.pl to use the same $PATH as the other
tools.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/scripts/CheckWineTestBot.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testbot/scripts/CheckWineTestBot.pl b/testbot/scripts/CheckWineTestBot.pl
index 9c2e291..0af2550 100755
--- a/testbot/scripts/CheckWineTestBot.pl
+++ b/testbot/scripts/CheckWineTestBot.pl
@@ -38,17 +38,17 @@ sub BEGIN
 use WineTestBot::Config;
 use WineTestBot::Engine::Notify;
 
-$ENV{PATH} = "/sbin:/usr/sbin:/usr/bin:/bin";
+$ENV{PATH} = "/usr/bin:/bin";
 
 my $rc = 0;
 if (! PingEngine())
 {
   if ($> == 0)
   {
-    system "service winetestbot restart > /dev/null";
+    system "/usr/sbin/service winetestbot restart > /dev/null";
     sleep 5;
   }
-  
+
   open (SENDMAIL, "|/usr/sbin/sendmail -oi -t -odq");
   print SENDMAIL <<"EOF";
 From: $RobotEMail




More information about the wine-cvs mailing list