Francois Gouget : testbot: Fix the check for unknown options.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 8 04:42:53 CDT 2014


Module: tools
Branch: master
Commit: 7683bd570d23ae0710582c47db962dd2a214a9af
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=7683bd570d23ae0710582c47db962dd2a214a9af

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Aug  8 03:11:56 2014 +0200

testbot: Fix the check for unknown options.

---

 testbot/bin/RevertVM.pl        | 2 +-
 testbot/bin/WineRunBuild.pl    | 2 +-
 testbot/bin/WineRunReconfig.pl | 2 +-
 testbot/bin/WineRunTask.pl     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/testbot/bin/RevertVM.pl b/testbot/bin/RevertVM.pl
index 8539420..e8e7a87 100755
--- a/testbot/bin/RevertVM.pl
+++ b/testbot/bin/RevertVM.pl
@@ -107,7 +107,7 @@ while (@ARGV)
     $Usage = 0;
     last;
   }
-  elsif ($Arg =~ /^???/)
+  elsif ($Arg =~ /^-/)
   {
     Error "unknown option '$Arg'\n";
     $Usage = 2;
diff --git a/testbot/bin/WineRunBuild.pl b/testbot/bin/WineRunBuild.pl
index 4aadcbb..ba6bb53 100755
--- a/testbot/bin/WineRunBuild.pl
+++ b/testbot/bin/WineRunBuild.pl
@@ -176,7 +176,7 @@ while (@ARGV)
     $Usage = 0;
     last;
   }
-  elsif ($Arg =~ /^???/)
+  elsif ($Arg =~ /^-/)
   {
     Error "unknown option '$Arg'\n";
     $Usage = 2;
diff --git a/testbot/bin/WineRunReconfig.pl b/testbot/bin/WineRunReconfig.pl
index cb66a64..3af46c9 100755
--- a/testbot/bin/WineRunReconfig.pl
+++ b/testbot/bin/WineRunReconfig.pl
@@ -177,7 +177,7 @@ while (@ARGV)
     $Usage = 0;
     last;
   }
-  elsif ($Arg =~ /^???/)
+  elsif ($Arg =~ /^-/)
   {
     Error "unknown option '$Arg'\n";
     $Usage = 2;
diff --git a/testbot/bin/WineRunTask.pl b/testbot/bin/WineRunTask.pl
index b7f235d..d82a156 100755
--- a/testbot/bin/WineRunTask.pl
+++ b/testbot/bin/WineRunTask.pl
@@ -193,7 +193,7 @@ while (@ARGV)
     $Usage = 0;
     last;
   }
-  elsif ($Arg =~ /^???/)
+  elsif ($Arg =~ /^-/)
   {
     Error "unknown option '$Arg'\n";
     $Usage = 2;




More information about the wine-cvs mailing list