[Koha-bugs] [Bug 17917] t/db_dependent/check_sysprefs.t fails on kohadev strangely

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 19 22:33:23 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17917

Gracie <grace.mcky at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #59274|0                           |1
        is obsolete|                            |

--- Comment #30 from Gracie <grace.mcky at gmail.com> ---
Created attachment 59287
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59287&action=edit
Bug 17917: Fix path issue in t/db_dependent/check_sysprefs.t

C4::Context->config('intranet') is returning different
values based on whether it is a full t/db_dependent test
or a specific check_sysprefs.t test run.

Tests are only run in kohaclone, so it makes no sense to
reference config at all. Brought in rel2abs logic to build
a reasonable $root_dir.

TEST PLAN
---------
-- on a kohadevbox

sudo apt-get update
sudo apt-get upgrade
-- need to make sure the koha-commonpackage is more current

git checkout master
git pull
sudo koha-shell -c "prove t/db_dependent" kohadev
-- this should have a check_sysprefs.t failure
sudo koha-shell -c "prove t/db_dependent/check_sysprefs.t" kohadev
-- this should strangely pass

git checkout -b bug_17917 origin/master
git bz apply 17917
sudo koha-shell -c "prove t/db_dependent" kohadev
-- there will not be a check_sysprefs.t failure
sudo koha-shell -c "prove t/db_dependent/check_sysprefs.t" kohadev
-- this should pass

-- run koha qa test tools

Signed-off-by: Grace McKenzie <grace.mcky at gmail.com>

https://bugs.koha-community.org/show_bug.cgi?id=16387
Signed-off-by: Grace McKenzie <grace.mcky at gmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list