#!/bin/bash
## kola:
##   # This test only runs on FCOS as the RHCOS rpmdb has not migrated to sqlite yet.
##   # TODO-RHCOS: drop the "fcos" tag when RHCOS migrates to using sqlite
##   distros: fcos
##   exclusive: false

set -xeuo pipefail

. $KOLA_EXT_DATA/commonlib.sh

# make sure we're using the sqlite rpmdb backend
# https://github.com/coreos/fedora-coreos-tracker/issues/623
if [ ! -f /usr/share/rpm/rpmdb.sqlite ]; then
    fatal "Didn't find file /usr/share/rpm/rpmdb.sqlite"
fi
ok rpmdb is sqlite
