When a directory is added or removed we must re-run make_makefiles. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> --- testbot/lib/WineTestBot/PatchUtils.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/testbot/lib/WineTestBot/PatchUtils.pm b/testbot/lib/WineTestBot/PatchUtils.pm index 6c72e1639..a466df359 100644 --- a/testbot/lib/WineTestBot/PatchUtils.pm +++ b/testbot/lib/WineTestBot/PatchUtils.pm @@ -87,7 +87,16 @@ sub _AddTest($$$) } # Assume makefile modifications may break the build but not the tests - return if ($File eq "Makefile.in" or $Impacts->{NoUnits}); + if ($File eq "Makefile.in") + { + if ($Change eq "new" or $Change eq "rm") + { + # This adds / removes a directory + $Impacts->{Makefiles} = 1; + } + return; + } + return if ($Impacts->{NoUnits}); if (!$Tests->{$Module}->{Files}) { -- 2.17.0