From 210bf742b92bde3baf1ca6d7af9f847d052a0691 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 5 Oct 2014 15:19:12 +0100 Subject: [PATCH 1/1] relative URLs test: pass an appropriate PERL5LIB through We were previously using the system copy of IkiWiki, because the CGI resets its environment. --- t/relativity.t | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/relativity.t b/t/relativity.t index ca1664f3c..8903d03cc 100755 --- a/t/relativity.t +++ b/t/relativity.t @@ -18,6 +18,7 @@ BEGIN { use_ok("IkiWiki"); } +my $PERL5LIB = 'blib/lib:blib/arch'; my $pwd = getcwd(); # Black-box (ish) test for relative linking between CGI and static content @@ -80,6 +81,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -177,6 +179,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -268,6 +271,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -372,6 +376,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -483,6 +488,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -539,6 +545,7 @@ add_plugins: - anonok anonok_pagespec: "*" reverse_proxy: 1 +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); -- 2.45.0