Francois Gouget : testbot/TestAgent: Simplify the implementation for commands with no argument.

Alexandre Julliard julliard at winehq.org
Fri Apr 1 15:30:27 CDT 2022


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Apr  1 17:09:18 2022 +0200

testbot/TestAgent: Simplify the implementation for commands with no argument.

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

---

 testbot/scripts/TestAgent | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/testbot/scripts/TestAgent b/testbot/scripts/TestAgent
index 10bdc63..8691f47 100755
--- a/testbot/scripts/TestAgent
+++ b/testbot/scripts/TestAgent
@@ -210,15 +210,7 @@ while (@ARGV)
         @Rm = @ARGV;
         last;
     }
-    elsif ($arg eq "getcwd")
-    {
-        $Cmd = $arg;
-    }
-    elsif ($arg eq "getversion")
-    {
-        set_cmd($arg);
-    }
-    elsif ($arg eq "ping" or $arg eq "settime")
+    elsif ($arg =~ /^(?:getcwd|getversion|ping|settime)$/)
     {
         set_cmd($arg);
     }




More information about the wine-cvs mailing list