Description: use installed script when run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-02-11

--- a/t/35commandlinemultimarkdown.t
+++ b/t/35commandlinemultimarkdown.t
@@ -9,8 +9,9 @@
 open my $file, '<', "$filename.xhtml" or die "Couldn't open $filename: $!";
 my $expected = do {local $/ = undef; <$file>};
 
+my $script = $ENV{AUTOPKGTEST_TMP} ? '/usr/bin/multimarkdown' : "$Bin/../script/MultiMarkdown.pl";
 lives_ok {
-    require "$Bin/../script/MultiMarkdown.pl";
+    require $script;
 } 'require MultiMarkdown.pl works';
 my $out = main();
 is($out, $expected, 'MultiMarkdown.pl does the right thing with the syntax guide');
