test-0021.sh 523 B

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