accept fail char means we are done

Signed-off-by: Andy Green <andy.green@linaro.org>
Merge branch 'master' into nytd_build