[PATCH 1/2] testbot: Avoid some unneeded regular expressions when parsing logs.
Francois Gouget
fgouget at codeweavers.com
Thu Oct 18 04:13:15 CDT 2018
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/lib/WineTestBot/LogUtils.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 6caa0212c2..1f3831bba9 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -83,11 +83,11 @@ sub ParseTaskLog($)
foreach my $Line (<$LogFile>)
{
chomp $Line;
- if ($Line =~ /^Task: ok$/)
+ if ($Line eq "Task: ok")
{
$Result ||= "ok";
}
- elsif ($Line =~ /^Task: Patch failed to apply$/)
+ elsif ($Line eq "Task: Patch failed to apply")
{
$Result = "badpatch";
last; # Should be the last and most specific message
--
2.19.1
More information about the wine-devel
mailing list