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