Module: tools Branch: master Commit: df71920b8680b33367b231b6de20c2aa204de2ae URL: https://source.winehq.org/git/tools.git/?a=commit;h=df71920b8680b33367b231b6...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Jun 14 10:37:30 2018 +0200
testbot/build: Save the full list of Wine files.
The list can later be used by the TestBot to better identify Wine patches.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 3a555af..14a5985 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"),