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

Marcel de Rooy <[email protected]> changed:

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

--- Comment #13 from Marcel de Rooy <[email protected]> ---
Created attachment 184432
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184432&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 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 value of 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 (you need to make sure that TEST_SYSTEM=1
is exported in your environment; e.g. add to $KTD_HOME/.env).

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