2454 Commits
Author SHA1 Message Date
Wiktor MowinskiandFilip Gołaś f232f7e383 test_cases.json: remove duplicate
Signed-off-by: Wiktor Mowinski <wiktor.mowinski@3mdeb.com>
2026-04-24 12:40:02 +02:00
Filip Gołaś d83388c6eb capsule-update.robot: Restore DUT connection method after reboot in CUP260
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:02 +02:00
Filip Gołaś 07f6ab0a12 capsule-update.robot: TEST_KEYS fw variant env vars
Assuming that the testing firmware will
alwyays trust production keys, and
that testing firmware will always be
available, contrary to signed
production firmware.

With that, the TEST_KEYS variants handling
can be removed.

We can use for the tests:
CUP002: test base, any capsule
  - we cant test if base is a test variant,
    but test should always be available, so
    it should be always used as base
CUP150: any base, test capsule
  - we can check if capsule is test/prod
CUP151: any base, prod capsule
  - same as CUP150
CUP001 and every other test: any base, any capsule

So we can assume that for V2 capsules
only a test variant will be used for base.
When that will be possible we can add a check
for whether RC0 is test or prod
and conditionally skip CUP002

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 9b347bd293 capsule-update.robot: Update prep instructions for Capsules V2
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 9c996ea305 capsule-update.robot: Remove setup&teardown flash in CUP002
If the Skip condition for CUP002 is not triggered, then
- option a) `CAPSULE_FW_FILE` contains test keys, so `CAPSULE_UPDATE_RC0_FW_FILE` must best test too, so BASE_FW_FILE is a testing firmware
- option b) Test RC0 and capsule were provided, and the `BASE_FW_FILE` is set to a testing firmware.

Either way the testing firmware is already flashed.

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 0a0389d399 capsule-update.robot: Remount /boot/efi and crop BOM when reading logs
Sometimes the logs file is read as empty.
After such issue happened ive checked manually
and it was not empty at all.
It must be some kind of a synchronization issue
which should be fixed by a quick remount of the
/boot FS.

Additionally the BOM bytes from UTF-8 encoding seem to break the Telnet
library and the file contents are interpreted as empty despite the
library reading the contents. Removing them using SED should help with
that.

recv b'\xbb\xbfCapsuleMax -
CapsuleFFFF\r\r\n\x1b[?2004hroot@3mdeb:/home/ubuntu#

but ${output} = ""

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 2c3096ab3c capsule-update.robot: Only HAP disable ME if ME is supported
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś d9bad6459f capsule-update.robot: Remove unused code
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 557c63b32b flash.robot: Flash Firmware: Do not verify file_size if flashing not supported
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 697385cba2 capsule-update.robot: Fix not flashing base firmware if not CUSTOM_LOGO_SUPPORT
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 1320132b3f capsule-update.robot: Fix UUID colliding on windows and Ubuntu
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 6a7ebfc3c9 capsule_update_tests.sh: Refactor the script to make it easier to understand
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 9dac52d08b capsule-update.robot: simplify choosing BASE_FW_FILE a bit
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś d4fc02731c capsule-update.robot: CUP260: Fix for pikvm
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:01 +02:00
Filip Gołaś 9e3fc963d5 capsule-update.robot: Show manual UI instruction BEFORE the UI appears
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś a011b31cce capsule-update.robot: CUP250: Flash NO_LOGO fw only if supported
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś 7916ab1125 capsule-update.robot: Add temporary prod base flash before production update
As of the time of writing the tests, the test base firmware
only accepts testing keys. If it will also accept
the production keys in the future, this flash step
could be removed and there won't be a need to create
a production RC0.

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś 49cb1f9a9f capsule-update.robot: Fix setting {BASE_FW_FILE}
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś e450a44d0b capsule-update.robot: Fix using removed Handle FUM Screen
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś b1b0db008a capsule-update.robot: Disable ME in base binary
Instead of setting the option in setup menu and repeating the
process after every flash, modify the base binary
and reuse it in the suite later.

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś 8c42f74bcb capsule-update.robot: Remove setting DUT Response Timeout
Flash Firmware already sets it to 300s, so setting it here
decreases the timeout if anything

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś 38bcafc8ac capsule_update_tests.sh: Detect V2 capsules automatically
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś 23cff5689b capsule_update.robot: Deploy UEFI Shell before usage
This way the tests won't break in a criptic way when Flashing the
firmware or capsule update fails to restore the bootorder.

This does not cause additional power cycle as before and after
the capsule updates the tests enter an OS.

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś 72be98a619 lib/custom_bootentries: Allow Deploy Uefi Shell without reboot
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00
Filip Gołaś 4dea132803 capsule-update.robot: Restore UEFI shell after flashing firmware
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2026-04-24 12:40:00 +02:00