test-0038.sh 564 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 38
  4. # ------------------------------- Test 38 ------------------------------------
  5. # preremove script
  6. preptest test.log 38 1
  7. preptest test2.log 38 1
  8. $RLR test-config.38 --force
  9. # Check both possible orders
  10. grep "test2.log.1test.log.1" scriptout >/dev/null
  11. if [ $? != 0 ]; then
  12. grep "test.log.1test2.log.1" scriptout >/dev/null
  13. if [ $? != 0 ]; then
  14. echo "ERROR: scriptout should contain 'test2.log.1test.log.1' or 'test.log.1test2.log.1'"
  15. exit 3
  16. fi
  17. fi
  18. rm -f scriptout
  19. checkoutput <<EOF
  20. test.log 0
  21. test2.log 0
  22. EOF