https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39740
Tomás Cohen Arazi (tcohen) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #184798|0 |1 is obsolete| | Attachment #184799|0 |1 is obsolete| | Attachment #184800|0 |1 is obsolete| | Attachment #184801|0 |1 is obsolete| | Attachment #184802|0 |1 is obsolete| | Attachment #184803|0 |1 is obsolete| | Attachment #184804|0 |1 is obsolete| | Attachment #184873|0 |1 is obsolete| | Attachment #184874|0 |1 is obsolete| | Attachment #184920|0 |1 is obsolete| | --- Comment #45 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 184989 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184989&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]> Signed-off-by: Tomas Cohen Arazi <[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/
