Francois Gouget : testbot/build: Avoid an undefined $Action error in WineTest.pl.

Alexandre Julliard julliard at winehq.org
Tue Jul 10 12:39:42 CDT 2018


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Jul 10 10:35:04 2018 +0200

testbot/build: Avoid an undefined $Action error in WineTest.pl.

This would only happen if running WineTest.pl from the command line, to
get the usage message for instance.

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

---

 testbot/bin/build/WineTest.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testbot/bin/build/WineTest.pl b/testbot/bin/build/WineTest.pl
index 2b2ea2b..5ef8e61 100755
--- a/testbot/bin/build/WineTest.pl
+++ b/testbot/bin/build/WineTest.pl
@@ -315,9 +315,9 @@ if (!defined $Usage)
     $Usage = 2;
   }
 
-  if (!defined $FileName and $Action eq "build")
+  if (!defined $FileName and ($Action || "") eq "build")
   {
-    Error "you must provide a patch file\n";
+    Error "you must provide a patch to test\n";
     $Usage = 2;
   }
 }




More information about the wine-cvs mailing list