Dasharo / open-source-firmware-validation

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

265 execute command in terminal not working in uefi shell #302

Closed JanPrusinowski closed 1 week ago

JanPrusinowski commented 1 month ago

https://jira-3mdeb.atlassian.net/browse/PROT-1302

macpijan commented 2 weeks ago

@JanPrusinowski I would appreciate passing logs if you say it's been fixed. Still fails for me:

 robot  -L TRACE -v config:qemu -v rte_ip:127.0.0.1 -v snipeit:no dasharo-security/secure-boot.robot
==============================================================================
Secure-Boot                                                                   
==============================================================================
SBO001.001 Check Secure Boot default state (firmware) :: This test... | PASS |
------------------------------------------------------------------------------
SBO002.001 UEFI Secure Boot (Ubuntu 22.04) :: This test verifies t... | PASS |
------------------------------------------------------------------------------
SBO002.002 UEFI Secure Boot (Windows 11) :: This test verifies tha... | SKIP |
SBO002.002 not supported
------------------------------------------------------------------------------
SBO003.001 Attempt to boot file with the correct key from Shell (f... | FAIL |
'
FS0:\>' does not contain 'Hello, world!'
------------------------------------------------------------------------------
SBO004.001 Attempt to boot file without the key from Shell (firmwa... | FAIL |
'
FS0:\>' does not contain 'Access Denied'
------------------------------------------------------------------------------
SBO005.001 Attempt to boot file with the wrong-signed key from She... | FAIL |
'
FS0:\>' does not contain 'Access Denied'
------------------------------------------------------------------------------
SBO006.001 Reset Secure Boot Keys option availability (firmware) :... | PASS |
------------------------------------------------------------------------------
SBO007.001 Attempt to boot the file after restoring keys to defaul... | FAIL |
'
FS0:\>' does not contain 'Hello, world!'
------------------------------------------------------------------------------
SBO008.001 Attempt to enroll the key in the incorrect format (firm... | PASS |
------------------------------------------------------------------------------
Secure-Boot                                                           | FAIL |
9 tests, 4 passed, 4 failed, 1 skipped
==============================================================================
Output:  /home/macpijan/projects/github/dasharo/open-source-firmware-validation/output.xml
Log:     /home/macpijan/projects/github/dasharo/open-source-firmware-validation/log.html
Report:  /home/macpijan/projects/github/dasharo/open-source-firmware-validation/report.html
macpijan commented 2 weeks ago

I see some new commits @JanPrusinowski , should it work better? In such case, please provide some logs

JanPrusinowski commented 1 week ago

==============================================================================
Secure-Boot                                                                   
==============================================================================
SBO001.001 Check Secure Boot default state (firmware) :: This test... | PASS |
------------------------------------------------------------------------------
SBO002.001 UEFI Secure Boot (Ubuntu 22.04) :: This test verifies t... | PASS |
------------------------------------------------------------------------------
SBO002.002 UEFI Secure Boot (Windows 11) :: This test verifies tha... | SKIP |
SBO002.002 not supported
------------------------------------------------------------------------------
SBO003.001 Attempt to boot file with the correct key from Shell (f... | PASS |
------------------------------------------------------------------------------
SBO004.001 Attempt to boot file without the key from Shell (firmwa... | PASS |
------------------------------------------------------------------------------
SBO005.001 Attempt to boot file with the wrong-signed key from She... | PASS |
------------------------------------------------------------------------------
SBO006.001 Reset Secure Boot Keys option availability (firmware) :... | PASS |
------------------------------------------------------------------------------
SBO007.001 Attempt to boot the file after restoring keys to defaul... | PASS |
------------------------------------------------------------------------------
SBO008.001 Attempt to enroll the key in the incorrect format (firm... | PASS |
------------------------------------------------------------------------------
Secure-Boot                                                           | PASS |
9 tests, 8 passed, 0 failed, 1 skipped
==============================================================================
Output:  /home/janprusinowski/Desktop/Dasharo2/open-source-firmware-validation/output.xml
Log:     /home/janprusinowski/Desktop/Dasharo2/open-source-firmware-validation/log.html
Report:  /home/janprusinowski/Desktop/Dasharo2/open-source-firmware-validation/report.html```