Backport v2024 <- v2025dev2: Fixes for power cut and out of space tests
- Mar 06, 2024
-
-
In order to improve readability and maintainability move code that is repeated to a new set of functions. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
While running the out-of-space test a dummy file is created to reduce the space available. Unfortunately, in some cases the space available is still enough to upgrade the system leading to sporadic failures. The reason behind this are a few: - The delta file is dinamically created and is very small, so with very little space the update can be applied - The way of calculating the space required for a file to fill the disk free space is not accurate as it relies in the output of df In order to make the test more reliable, instead of trying to compute the free space allow dd to fill the disk and then truncate the file allowing only a very limited space. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
In order for the test update_does_not_start_if_disk_too_low make sense OStree should be configured with an appropiate value. The previous implementation relied in default values that can changed from configuration to configuration, so in order to test the functionality force a well known value. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Feb 26, 2024
-
-
Walter Lozano authored
During the power cut test several upgrades are triggered and a delay is used to trigger a power cut from LAVA. This delay should only allow the upgrade to start but not to finish, as the purpose of the test is to ensure that in a power cut AUM does not apply the update. However, with modern boards delays bigger than 3 sec make the system to complete the upgrade and thus making the test to fail. Workaround this issue by limiting the max delay used. This approach is not perfect as it is still not deterministic, but at least should make the test more stable. A better approach, taking into account the progress in the update should be implemented once this support is included. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-