Skip to content

Commit 80065f7

Browse files
committed
ci: Load null_blk for I/O limit tests
Load the `null_blk` kernel module to have the `/dev/nullb0` device available for the tests. Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 8160e02 commit 80065f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/cirrus/setup_environment.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ mount -t tmpfs -o size=75%,mode=0700 none /var/lib/containers
209209
showrun echo "Setting CI_DESIRED_STORAGE [=$CI_DESIRED_STORAGE] for *e2e* tests"
210210
echo "STORAGE_FS=$CI_DESIRED_STORAGE" >>/etc/ci_environment
211211

212+
if ((CONTAINER==0)); then # not yet inside a container
213+
# Load null_blk to use /dev/nullb0 for testing block
214+
# devices limits
215+
modprobe null_blk nr_devices=1 || :
216+
fi
217+
212218
# Required to be defined by caller: The environment where primary testing happens
213219
# shellcheck disable=SC2154
214220
showrun echo "about to set up for TEST_ENVIRON [=$TEST_ENVIRON]"

0 commit comments

Comments
 (0)