dispatcher: boot: deptcharge: Add ResetConnection function

Instead of connecting the device, the ResetConnection function
will be used to perform a reset of the console on retries.
Thanks to that, the console will be reset each time a retry is
performed. On the first try, the disconnet will not be done as
the console is not connected.

Signed-off-by: Mylène Josserand <mylene.josserand@collabora.com>
18 jobs for add_console_reset in 16 minutes and 6 seconds (queued for 5 seconds)
latest
Status Job ID Name Coverage
  Test
passed #132261
amd64
dispatcher-debian-10

00:02:26

passed #132263
amd64
dispatcher-debian-11

00:02:28

passed #132262
amd64
server-debian-10

00:02:52

passed #132264
amd64
server-debian-11

00:05:04

 
  Analyze
passed #132265
amd64-dind
bandit-sast

00:00:57

passed #132268
amd64
black

00:00:42

passed #132269
amd64
code_quality

00:00:24

passed #132274
amd64
codespell

00:00:22

passed #132270
amd64
coverage

00:06:51

61.07%
passed #132271
amd64
dockerfiles

00:00:17

passed #132266
amd64-dind
eslint-sast

00:00:26

passed #132273
amd64
pylint

00:03:11

passed #132272
amd64
schemas

00:00:33

passed #132267
amd64-dind
semgrep-sast

00:01:05

 
  Build
passed #132276
amd64
debian/10

00:01:12

passed #132275
amd64
doc

00:00:36

passed #132277
amd64-dind
docker-amd64-dispatcher

00:04:05

passed #132278
amd64-dind
docker-amd64-server

00:04:06