test 980B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. shellfu import jat_dump
  3. shellfu import preupg_fupath
  4. jat__pstarts "collect outputs"
  5. preupg_fupath RHEL6_7 @pass @failed @informational @not_applicable
  6. jat__eval -S 2 -h "run preupg and confirm via non-tty stdin" \
  7. "preupg -c RHEL6_7/all-xccdf.xml <<<y >preupg.out 2>preupg.err"
  8. jat__pend
  9. jat__pstartt "BZ#1231410" # preupgrade fails if stdin fed from pipe (list index out of range)
  10. ERR="preupg: error: list index out of range"
  11. jat__cmd -S 1 -h "the known error is not seen: $ERR" \
  12. grep "$ERR" preupg.err
  13. jat__pend
  14. #FIXME: enable after PR#343
  15. # https://github.com/upgrades-migrations/preupgrade-assistant/issues/343
  16. jat__pstartt "BZ#1331416" # preupg prints error messages when stdin is redirected from pipe
  17. ERR="Inappropriate ioctl for device"
  18. jat__cmd -S 1 -h "the known error is not seen: $ERR" \
  19. grep "$ERR" preupg.err
  20. jat__pend
  21. jat__pstartd
  22. jat_dump__file preupg.out preupg.err
  23. jat__pend