Skip to content

Commit 3c80c7d

Browse files
Merge pull request #3751 from balena-os/alexgg/pl1000
tests: secureboot: generalize U-boot binary naming
2 parents 3655901 + 6501bcf commit 3c80c7d

File tree

2 files changed

+2
-2
lines changed
  • meta-balena-common/recipes-support/os-helpers/os-helpers
  • tests/suites/os/tests/secureboot

2 files changed

+2
-2
lines changed

meta-balena-common/recipes-support/os-helpers/os-helpers/os-helpers-fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
get_sector_size() {
2424
local _device="$1"
2525

26-
lsblk -o NAME,PHY-SEC,TYPE "$_device" 2>/dev/null | awk '$3 == "part" || $3 == "crypt" {print $2}' | head -n1
26+
lsblk -nlo NAME,PHY-SEC,TYPE "$_device" 2>/dev/null | awk '{print $2}'
2727
}
2828

2929
# Wait for a file to appear with loop count limit.

tests/suites/os/tests/secureboot/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ class imxSecureBoot extends secureBoot {
454454

455455
async testBootloaderIntegrity() {
456456
const tests = [
457-
{ name:'Bootloader', path: '/mnt/imx/imx-boot-*.bin-flash_evk', pattern: CSF_HEADER, replacement: CSF_HEADER_BAD },
457+
{ name:'Bootloader', path: '/mnt/imx/imx-boot*.bin*', pattern: CSF_HEADER, replacement: CSF_HEADER_BAD },
458458
{ name:'Balena bootloader', path: '/mnt/imx/Image.gz', pattern: CSF_HEADER, replacement: CSF_HEADER_BAD },
459459
{ name: 'Device trees', path: '/mnt/imx/*.dtb', pattern: CSF_HEADER, replacement: CSF_HEADER_BAD },
460460
];

0 commit comments

Comments
 (0)