From be808ef463e8c5d0be84aa056d3f0c8ba887623a Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Tue, 17 Jan 2017 06:42:11 +0000 Subject: [PATCH] Bug 17920: t/db_dependent/Sitemapper.t fails because of permissions The directory it attempts to create an xml file may not be writable for the user running the test. By changing the directory from the current directory to a temporary one, the test runs. After all 'chmod 777 t/db_dependent' is a bad idea. TEST PLAN --------- 1) sudo koha-shell "prove t/db_dependent/Sitemapper.t" kohadev -- fails 2) apply patch 3) sudo koha-shell "prove t/db_dependent/Sitemapper.t" kohadev -- succeeds 4) run koha qa test tools Tested without qa tools Signed-off-by: Claire Gravely --- t/db_dependent/Sitemapper.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Sitemapper.t b/t/db_dependent/Sitemapper.t index a1ea4f8..848fc3b 100755 --- a/t/db_dependent/Sitemapper.t +++ b/t/db_dependent/Sitemapper.t @@ -64,7 +64,7 @@ $db->mock( _new_schema => sub { return Schema(); } ); -my $dir = File::Spec->rel2abs( dirname(__FILE__) ); +my $dir = File::Spec->tmpdir(); my $data = [ -- 2.1.4