gitlab-ci: serial close can leave an active read
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 2 Dec 2021 06:30:45 +0000 (01:30 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Dec 2021 23:26:27 +0000 (23:26 +0000)
commiteb0b08ea1aac2e29f5c2fa46da905dd7fb83f044
treee4e85f63a6f81c0c10f66d70d7f562d54d09ae95
parent1abd6375c9639673ada971897f901e6de7e6dfd2
gitlab-ci: serial close can leave an active read

So instead cancel the read first, and then close. Make sure the
serial-reading properly detects this cancelled condition under all
circumstances and exits.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14033>
.gitlab-ci/bare-metal/serial_buffer.py