tests: Slacken guest pull rootfs count assert

- We previously have an expectation for the pause rootfs
to be pull on the host when we did a guest pull. We weren't
really clear why, but it is plausible related to the issues we had
with containerd and nydus caching. Now that is fixed we can begin
to address this with setting shared_fs=none, but let's start with
updating the rootfs host check to be not higher than expected

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2024-05-16 09:27:33 +01:00 committed by Fabiano Fidêncio
parent 67ff58251d
commit 7ac302e2d8
No known key found for this signature in database
GPG Key ID: EE926C2BDACC177B

View File

@ -111,7 +111,7 @@ assert_rootfs_count() {
local expect_count="$3"
local allrootfs=""
# verify that the sandbox_id is not empty;
# verify that the sandbox_id is not empty;
# otherwise, the command $(exec_host $node "find /run/kata-containers/shared/sandboxes/${sandbox_id} -name rootfs -type d")
# may yield an unexpected count of rootfs.
if [ -z "$sandbox_id" ]; then
@ -130,8 +130,8 @@ assert_rootfs_count() {
done
echo "allrootfs is: $allrootfs"
count=$(echo $allrootfs | grep -o "rootfs" | wc -l)
echo "count of container rootfs in host is: $count, expect count is: $expect_count"
[ $expect_count -eq $count ]
echo "count of container rootfs in host is: $count, expect count is less than, or equal to: $expect_count"
[ $expect_count -ge $count ]
}
# Create a pod configuration out of a template file.