test-bug-633350-do-not-kill-last-char-in-Release 563 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. insertpackage 'unstable' 'cool' 'amd64' '1.0'
  8. setupaptarchive --no-update
  9. echo 'NotAutomatic: yes' >> aptarchive/dists/unstable/Release
  10. signreleasefiles
  11. find aptarchive/dists -name 'InRelease' -delete
  12. rm -rf rootdir/var/lib/apt/lists
  13. OUTPUT="$(aptget update 2>&1)"
  14. msgtest 'Check that parsing happens without warnings' 'with missing newline'
  15. if echo "${OUTPUT}" | grep '^W:' > /dev/null; then
  16. msgfail
  17. echo "${OUTPUT}"
  18. else
  19. msgpass
  20. fi