[PATCH] testbot/Build: Only rebuild impacted test executables.
Francois Gouget
fgouget at codeweavers.com
Thu Sep 27 19:47:45 CDT 2018
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 at codeweavers.com>
---
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 1287f6db5..54b1aeae1 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;
--
2.19.0
More information about the wine-devel
mailing list