fprintd/tests/run.sh
DistroBaker a443f84461 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/fprintd.git#931896c76ae256999762a9e409edb303ade5ed3a
2020-12-01 15:32:09 +00:00

16 lines
345 B
Bash
Executable File

#!/usr/bin/bash
set -u
# 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
pip3 install python-dbusmock
fi
# Switch into the tests directory
cd source/tests || exit 1
# Run actual test
exec python3 "$@"