updated test logic in case a device name was not found by cmake

7 jobs for device-name-check-depends in 1 minute and 20 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #882
centos
centos_build

00:00:12

passed #883
mac
mac_build

00:00:11

passed #884
ubuntu
ubuntu_build

00:00:14

passed #885
windows
win_build

00:00:35

 
  Test
passed #886
centos
centos_test

00:00:11

passed #887
mac
mac_test

00:00:11

passed #888
windows
win_test

00:00:43