]> git.koha-community.org Git - koha.git/commit
Bug 10942: (QA followup) make warnings to to STDERR
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 13 Mar 2014 14:30:15 +0000 (11:30 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 24 Apr 2014 12:50:54 +0000 (12:50 +0000)
commit2a7e71554b534f8d79cdbdc9552bc78bba9c4408
tree1f53434f5400db544901199c61c89f227863cd3f
parentee4e4917eb3fad95680c63aee025a3e94ba898c0
Bug 10942: (QA followup) make warnings to to STDERR

As noted by Robin, STDOUT is used by the script to communicate with
debconf and, hence, the warning messages should be directed to STDERR.

This patch does that. To test:

- Set AUTOMATIC_TRANSLATIONS_UPDATE="no" so the warning normally shows
- Redirect STDOUT to /dev/null:
  dpkg -i koha-common...deb > /dev/null
=> Warning message doesn't show (i.e. it is sent to STDOUT)
- Apply the patch, rebuild package
- Redirect STDOUT to /dev/null:
  dpkg -i koha-common...deb > /dev/null
=> Warning message shows (i.e. is correctly sent to STDERR)
- Redirect STDERR to /dev/null:
  dpkg -i koha-common...deb 2> /dev/null
=> Warning message doesn't show
- Verify that previous tests pass

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
debian/koha-common.postinst