Dasharo / open-source-firmware-validation

OSFV infrastructure with automated tests and scripts for managing test results
Apache License 2.0
8 stars 1 forks source link

Identify Path To SD Card In Windows KW, `drive_letters.ps1` script not working #478

Open philipandag opened 1 month ago

philipandag commented 1 month ago

Device

V560TNE

RTE version

--

OSFV version

v560tne-v0.9.1-rc3-testing-fixes

Affected component(s) or functionality

compatibility/sc-card-reader test

Brief summary

sc-card-reader fails, dentify Path To SD Card In Windows KW, drive_letters.ps1 script not working

How reproducible

100%

How to reproduce

run the test suite

Expected behavior

On read/write test it should find the drive letter and perform the test

Actual behavior

the drive letter is not found and the test breaks trying to index empty array

Link to screenshots or logs

sd-card-reader.robot_log.zip

Additional context

running the script manually confirms the script returns nothing. The Get-WMIObject -Query "SELECT * FROM Win32_DiskDrive WHERE InterfaceType='USB'" output does not change whether the sd card is connected or not. The SD card is properly displayed in Windows' file manager.

Solutions you've tried

The script does detect the SD card once I remove the WHERE filter from the query but then the script and the test suite would need to be changed.