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>
16 jobs for add_console_reset in 16 minutes and 38 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Test
passed #128428
amd64
dispatcher-debian-10

00:02:25

passed #128430
amd64
dispatcher-debian-11

00:02:36

passed #128429
amd64
server-debian-10

00:03:01

passed #128431
amd64
server-debian-11

00:05:28

 
  Analyze
passed #128432
amd64-dind
bandit-sast

00:00:54

passed #128433
amd64
black

00:00:34

passed #128434
amd64
code_quality

00:00:21

passed #128439
amd64
codespell

00:00:17

passed #128435
amd64
coverage

00:06:44

61.02%
passed #128436
amd64
dockerfiles

00:00:16

passed #128438
amd64
pylint

00:03:05

passed #128437
amd64
schemas

00:00:30

 
  Build
passed #128441
amd64
debian/10

00:01:19

passed #128440
amd64
doc

00:00:39

passed #128442
amd64-dind
docker-amd64-dispatcher

00:04:15

passed #128443
amd64-dind
docker-amd64-server

00:04:19