Francois Gouget : testbot/Build: Only rebuild impacted test executables.
Module: tools Branch: master Commit: 13b353545365275866245e10865b32a96ff9762c URL: https://source.winehq.org/git/tools.git/?a=commit;h=13b353545365275866245e10... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Fri Sep 28 02:47:45 2018 +0200 testbot/Build: Only rebuild impacted test executables. If a patch impacts a module but not its tests, don't try to rebuild the corresponding test executable. This fixes build failures when the module does not have tests in the first place. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/bin/build/Build.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/testbot/bin/build/Build.pl b/testbot/bin/build/Build.pl index 1287f6d..54b1aea 100755 --- a/testbot/bin/build/Build.pl +++ b/testbot/bin/build/Build.pl @@ -78,6 +78,7 @@ sub BuildTestExecutables($$$) my (@BuildDirs, @TestExes); foreach my $TestInfo (values %{$Impacts->{Tests}}) { + next if (!$TestInfo->{UnitCount}); push @BuildDirs, $TestInfo->{Path}; my $TestExe = "$TestInfo->{Path}/$TestInfo->{ExeBase}.exe"; push @TestExes, $TestExe;
participants (1)
-
Alexandre Julliard