Skip to content

Commit

Permalink
CI: write $CI_DESIRED_DATABASE to containers.conf
Browse files Browse the repository at this point in the history
This should make system tests work with the requested DB

Signed-off-by: Ed Santiago <santiago@redhat.com>
  • Loading branch information
edsantiago committed Mar 17, 2023
1 parent cf70c75 commit 411322a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions contrib/cirrus/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ case "$CG_FS_TYPE" in
*) die_unknown CG_FS_TYPE
esac

# Force the requested database backend without having to use command-line args
cat <<EOF >>/etc/containers/containers.conf
[engine]
database_backend = "$CI_DESIRED_DATABASE"
EOF

if ((CONTAINER==0)); then # Not yet running inside a container
# Discovered reemergence of BFQ scheduler bug in kernel 5.8.12-200
# which causes a kernel panic when system is under heavy I/O load.
Expand Down
1 change: 0 additions & 1 deletion test/system/005-info.bats
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ host.slirp4netns.executable | $expr_path
}

@test "podman info - confirm desired database" {
skip "FIXME: no way yet (2023-03-16) to override DB in system tests"
if [[ -z "$CI_DESIRED_DATABASE" ]]; then
# When running in Cirrus, CI_DESIRED_DATABASE *must* be defined
# in .cirrus.yml so we can double-check that all CI VMs are
Expand Down

0 comments on commit 411322a

Please sign in to comment.