upower/tests/run-it.sh
Troy Dawson 9acb3ad0b7 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/upower#e7e3fb4ee426802c8236860b87b10512d387db80
2020-10-15 13:15:44 -07:00

19 lines
495 B
Bash
Executable File

#!/usr/bin/bash
set -u
# main script
IT="${1:-source/src/linux/integration-test}"
# check if we need to install additional packages
# which is the case if we are on RHEL 8
source /etc/os-release || exit 1
if [[ "$ID" = *"rhel"* ]] && [[ "$VERSION_ID" == *"8"* ]]; then
dnf config-manager -y --add-repo umockdev.repo
dnf install -y umockdev-devel python3-gobject-base
pip3 install python-dbusmock
fi
# execute the integration test via umockdev-wrapper
exec umockdev-wrapper "$IT"