Testsuite: honour the "build" environment variable
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Sun, 4 Dec 2016 22:34:13 +0000 (23:34 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Sun, 4 Dec 2016 22:34:13 +0000 (23:34 +0100)
test/lib/Exim/Runtest.pm

index 8d22544bfdcdd7de26d5a0d8e2ce688e82f22619..537cea1e9513df139f68515be3261d18810c574e 100644 (file)
@@ -103,6 +103,7 @@ sub exim_binary {
             my $os = `$_/scripts/os-type`;
             my $arch = `$_/scripts/arch-type`;
             chomp($os, $arch);
+            ($ENV{build} ? "$_/build-$ENV{build}" : ()),
             "$_/build-$os-$arch" . ($ENV{EXIM_BUILD_SUFFIX} ? ".$ENV{EXIM_BUILD_SUFFIX}" : '');
         } @candidates;