https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39740
--- Comment #22 from Marcel de Rooy <[email protected]> --- Created attachment 184798 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184798&action=edit Bug 39740: Add is_git_install and is_test_system Test plan: Copy koha-functions.sh to /usr/share/koha/bin. Source bin/koha-functions.sh ('. bin/koha-functions.sh') Test in bash (Yes expected; adjust instance name): GIT_INSTALL=1; if is_git_install your_instance; then echo Yes; fi Add/set git_install to 1 in koha-conf.xml. Test in bash (Yes expected): unset GIT_INSTALL; if is_git_install your_instance; then echo Yes; fi Set git_install to 0 in koha-conf.xml. Test in bash (No expected): unset GIT_INSTALL; if ! is_git_install your_instance; then echo No; fi Remove git_install and add/set dev_install to 1 in koha-conf.xml. Test in bash (Yes expected): unset GIT_INSTALL; if is_git_install your_instance; then echo Yes; fi A few similar tests with test_system. Add/set test_system to 0 in koha-conf.xml. Test in bash (Yes expected): TEST_SYSTEM=1; if is_test_system your_instance; then echo Yes; fi Test in bash (No expected): unset TEST_SYSTEM; if ! is_test_system your_instance; then echo No; fi 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/
