mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 08:17:01 +00:00
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:
parent
67ff58251d
commit
7ac302e2d8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user