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

--- Comment #2 from Marcel de Rooy <[email protected]> ---
Created attachment 184187
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184187&action=edit
Bug 39740: Add is_test_system to koha-functions, incorporate in koha-plack

Result of is_test_system will be determined by looking at KTD_HOME and
TEST_SYSTEM in the environment.
If is_test_system returns true or the flag --development (introduced on
bug 36932) is set when calling koha-plack, koha-plack allows dumping a
stack trace.

Test plan:
Copy koha-plack to /usr/sbin, and koha-functions.sh to /usr/share/koha/bin.
Source bin/koha-functions.sh ('. bin/koha-functions.sh')
Play with values of KTD_HOME and TEST_SYSTEM and look at results of:
    if is_test_system; then echo 'Test system'; fi
Add a die in e.g. opac/opac-main.pl causing a 500. Do you see a stack
trace and is that expected? It will be in KTD, otherwise you need to
make sure that TEST_SYSTEM=1 is exported in your environment.

Signed-off-by: Marcel de Rooy <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to