test-0019.sh 430 B

123456789101112131415161718
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 19
  4. # ------------------------------- Test 19 ------------------------------------
  5. preptest test.log 19 1
  6. $RLR test-config.19 --force 2>error.log
  7. if [ $? = 0 ]; then
  8. echo "Logrotate exited with 0 exit code, but it should not"
  9. fi
  10. grep "error running non-shared postrotate script for" error.log >/dev/null
  11. if [ $? != 0 ]; then
  12. echo "No error printed, but there should be one."
  13. exit 3
  14. fi