Skip to content
Snippets Groups Projects

aum-rollback-bootcount: clarify steps to run the test

Open Dylan Aïssi requested to merge wip/daissi/aum-rollback-bootcount into apertis/v2026dev2
@@ -2,7 +2,7 @@ metadata:
name: aum-rollback-bootcount
format: "Apertis Test Definition 1.0"
image-types:
fixedfunction: [ armhf, arm64, amd64 ]
fixedfunction: [ armhf, arm64 ]
image-deployment:
- OSTree
type: functional
@@ -39,20 +39,21 @@ install:
run:
steps:
- "# For Phase 1-3, perform the following actions to move to the next phase,
- "For Phase 1-3, perform the actions 2 to 4 to move to the next phase,
the actions prepare the system and run the test in the appropriate phase"
- "Check the initial deployment"
- $ sudo ostree admin status
- "Enter test directory"
- $ cd aum-offline-upgrade
- "Set environment variables"
- $ source /etc/os-release
- $ ARCH=`dpkg --print-architecture`
- "Set additional variables which will be use to generate the image file path
base on the images available in the server, as example"
- $ BASEURL="https://images.apertis.org" BOARD="uboot" IMGPATH="daily/$VERSION"
- "Run the actual test"
- $ common/run-test-in-systemd --timeout=1200 --name=rollback-bootcount env DEBUG=2 RELEASE=$VERSION ARCH=$ARCH BASEURL=$BASEURL IMGPATH=$IMGPATH IMGDATE=$BUILD_ID IMGTYPE=$VARIANT_ID BOARD=$BOARD ./run-test-ota-auto.sh
- "Run the script preparing the system"
- $ ./run-test-aum-rollback-bootcount.sh
- "Reboot the system"
- "For Phase 4, power cycle the board just after starting the kernel,
- "Before starting the Phase 4, ensure the previous steps have been successful,
the following command should return '3':"
- $ cat /var/run-phase
- "For Phase 4, power cycle the board just after the u-boot message 'Hit any key to stop autoboot: X'
and before 'Starting kernel ...',
repeat it for three times to increase bootcount beyond the limit"
- "Check that bootlimit has been exceeded, by looking at logs"
- "Check that after booting the original deployment has been used"
\ No newline at end of file
- "Check that bootlimit has been exceeded, by looking at u-boot logs"
- "Check that after booting the initial deployment has been used with:"
- $ sudo ostree admin status
Loading