2012-02-08 23:31:59 -05:00
|
|
|
exec >&2
|
|
|
|
|
. ../skip-if-minimal-do.sh
|
|
|
|
|
|
|
|
|
|
rm -f out.log sort.log err.log
|
2015-08-27 06:57:27 -07:00
|
|
|
redo --keep-going 1.ok 2.fail 3.fail 4.ok 5.ok 6.fail 7.ok >err.log 2>&1 &&
|
2012-02-08 23:31:59 -05:00
|
|
|
exit 11 # expect it to return nonzero due to failures
|
|
|
|
|
sort out.log >sort.log
|
|
|
|
|
|
|
|
|
|
expect="1
|
|
|
|
|
2 fail
|
|
|
|
|
3 fail
|
|
|
|
|
4
|
|
|
|
|
5
|
|
|
|
|
6 fail
|
|
|
|
|
7"
|
|
|
|
|
|
|
|
|
|
[ "$(cat sort.log)" = "$expect" ] || exit 22
|