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

Francois Gouget fgouget at codeweavers.com
Tue Jul 10 03:35:04 CDT 2018


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>
---
 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 2b2ea2b54..5ef8e614e 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;
   }
 }
-- 
2.18.0




More information about the wine-devel mailing list