From 7ff360279202c5d46661f2071b16f26f711251c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.aissi@collabora.com> Date: Mon, 9 Dec 2024 14:52:00 +0100 Subject: [PATCH] aum-rollback-bootcount: clarify steps to run the test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com> --- test-cases/aum-rollback-bootcount.yaml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/test-cases/aum-rollback-bootcount.yaml b/test-cases/aum-rollback-bootcount.yaml index d135e73b..182dd762 100644 --- a/test-cases/aum-rollback-bootcount.yaml +++ b/test-cases/aum-rollback-bootcount.yaml @@ -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" + - "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 -- GitLab