[PATCH 2/2] testbot/build: Save the full list of Wine files.

Francois Gouget fgouget at codeweavers.com
Thu Jun 14 03:37:30 CDT 2018


The list can later be used by the TestBot to better identify Wine
patches.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/WineTestBot/PatchUtils.pm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/PatchUtils.pm b/testbot/lib/WineTestBot/PatchUtils.pm
index 3a555af9d..14a598545 100644
--- a/testbot/lib/WineTestBot/PatchUtils.pm
+++ b/testbot/lib/WineTestBot/PatchUtils.pm
@@ -42,7 +42,7 @@ use WineTestBot::Config;
 =item C<UpdateWineData()>
 
 Updates the summary information about the Wine source such as the list of
-tests (testlist.txt).
+tests (testlist.txt) and the full list of Wine files.
 
 =back
 =cut
@@ -51,6 +51,11 @@ sub UpdateWineData($)
 {
   my ($WineDir) = @_;
 
+  mkdir "$DataDir/latest" if (!-d "$DataDir/latest");
+
+  my $ErrMessage = `cd '$WineDir' && git ls-tree -r --name-only HEAD 2>&1 >'$DataDir/latest/winefiles.txt'`;
+  return $ErrMessage if ($? != 0);
+
   if (open(my $fh, ">", "$DataDir/testlist.txt"))
   {
     foreach my $TestFile (glob("$WineDir/*/*/tests/*.c"),
-- 
2.17.1



More information about the wine-devel mailing list