From 7401d9422be26c5ff900269a10e70c9ca4364de6 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 Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall --- 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 a1ea4f8a56..848fc3b3fa 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.39.2