aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-07-26 14:46:43 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-07-26 14:47:12 -0700
commitd0afd3f99658e23c17b4cf371558cd6f5ddb9cf4 (patch)
treec5e47afe1ec8860cbe09be79e490014862054c61 /test
parent93ef0cf08b6c2af725f52424540e5bea28de8c7b (diff)
downloadpandoc-citeproc-preamble-d0afd3f99658e23c17b4cf371558cd6f5ddb9cf4.tar.gz
Fix test/test to use /usr/bin/pandoc-citeproc-preamble
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'test')
-rwxr-xr-xtest/test4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test b/test/test
index 2d55320..36870c9 100755
--- a/test/test
+++ b/test/test
@@ -26,7 +26,9 @@ use File::Basename qw(dirname);
use File::Spec::Functions qw(rel2abs);
our $output = "output.tex";
-our $pcp = "../dist/build/pandoc-citeproc-preamble/pandoc-citeproc-preamble";
+our $pcp = $ENV{AUTOPKGTEST_TMP}
+ ? "/usr/bin/pandoc-citeproc-preamble"
+ : "../dist/build/pandoc-citeproc-preamble/pandoc-citeproc-preamble";
chdir(dirname(rel2abs(__FILE__)));
die "need to build before testing\n" unless -e $pcp;