lava_dispatcher/utils/udev.py: Fix wait_device_board_id test (67cdd360)

The wait_device_board_id is inside device_info not at device dictionary,
fix the retrieval and add test for devices that doesn't has device_info.

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
16 jobs for wait_device_board_id in 15 minutes and 58 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Test
passed #120578
amd64
dispatcher-debian-10

00:02:37

passed #120580
amd64
dispatcher-debian-11

00:02:46

passed #120579
amd64
server-debian-10

00:03:22

passed #120581
amd64
server-debian-11

00:05:18

 
  Analyze
passed #120582
amd64-dind
bandit-sast

00:00:53

passed #120583
amd64
black

00:00:34

passed #120584
amd64
code_quality

00:00:21

passed #120589
amd64
codespell

00:00:19

passed #120585
amd64
coverage

00:06:32

60.98%
passed #120586
amd64
dockerfiles

00:00:16

passed #120588
amd64
pylint

00:03:05

passed #120587
amd64
schemas

00:00:30

 
  Build
passed #120591
amd64
debian/10

00:01:23

passed #120590
amd64
doc

00:00:36

passed #120592
amd64-dind
docker-amd64-dispatcher

00:03:31

passed #120593
amd64-dind
docker-amd64-server

00:04:01