Module: tools Branch: master Commit: c923c74ac05d42d8f18e484be337a93164f42ded URL: https://source.winehq.org/git/tools.git/?a=commit;h=c923c74ac05d42d8f18e484b...
Author: Francois Gouget fgouget@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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); }