python-blivet/plans/tests.fmf
Vojtech Trefny fcdd4e1e2f Do not specify URL for discovering tests
With the URL pointed to the upstream repository the source RPM
is taken from the c10s branch and any patches included in the MR
are not applied when extracting tests.
2025-07-08 15:16:45 +02:00

36 lines
855 B
Plaintext

summary: libblockdev gating tests
prepare:
how: install
package:
- python3
- python3-dbus
- libblockdev-plugins-all
- python3-yaml
- targetcli
- stratis-cli
- stratisd
discover:
how: shell
dist-git-source: true
dist-git-install-builddeps: true
tests:
- name: upstream test suite
test: |
set -x
if [ -z "$PKG_VER" ]; then
PKG_VER=`rpmspec -q --srpm --qf "%{version}" python-blivet.spec`
fi
if [ -z "$PKG_VER" ]; then
echo "Error: Unable to extract package version"
exit 1
fi
pushd $TMT_SOURCE_DIR/blivet-${PKG_VER}
blivet_path=$(find /usr/ -path */site-packages | tr '\n' ':')
PYTHONPATH=$blivet_path python3 tests/run_tests.py
execute:
- how: tmt