python-blivet/tests/unit_testing.sh
Vojtech Trefny 66ecf7e795 Rebase to latest upstream release 3.4.0
Resolves: rhbz#1964341
2021-06-17 13:37:14 +02:00

13 lines
261 B
Bash

#!/bin/bash
# Bail out if anything goes wrong
set -e
# Get path to blivet
blivet_path=$(find /usr/ -path */site-packages/)
# Run upstream unit tests
cd ./source/
PYTHONPATH=$PYTHONPATH:$blivet_path python3 -m unittest discover -v -s ./tests/ -p '*_test.py'