[PATCH] testbot/Janitor: Fix extracting the VM name from reference report filenames.

Francois Gouget fgouget at codeweavers.com
Thu Dec 5 06:22:16 CST 2019


The log name part can contain underscores and uppercase letters when
testing locales.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/bin/Janitor.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/bin/Janitor.pl b/testbot/bin/Janitor.pl
index 537a0dc4a..c51637a19 100755
--- a/testbot/bin/Janitor.pl
+++ b/testbot/bin/Janitor.pl
@@ -308,7 +308,7 @@ if (opendir(my $dh, "$DataDir/latest"))
   {
     next if ($Entry eq "." or $Entry eq "..");
 
-    if ($Entry =~ /^(.*)_[a-z0-9]+\.report(?:\.err)?$/)
+    if ($Entry =~ /^([a-zA-Z0-9_]+)_(?:exe|win|wow)(?:32|64)[a-zA-Z0-9_]*\.report(?:\.err)?$/)
     {
       # Keep the reference WineTest reports for all VMs even if they are
       # retired or scheduled for deletion.
-- 
2.20.1




More information about the wine-devel mailing list