Bug 17920: t/db_dependent/Sitemapper.t fails because of permissions
commitfd8ef06f0e2eeeb4d23d334127e9295f91b0462a
authorMark Tompsett <mtompset@hotmail.com>
Tue, 17 Jan 2017 06:42:11 +0000 (17 06:42 +0000)
committerMason James <mtj@kohaaloha.com>
Wed, 25 Jan 2017 02:05:56 +0000 (25 15:05 +1300)
tree6d21b6bb09db9cbc132f5b8bc1231fbe5a2fc4dd
parent5a9f79c1bd3b1e35bbe80d98eef6d1e51354479f
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 <claire_gravely@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 7401d9422be26c5ff900269a10e70c9ca4364de6)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/Sitemapper.t